Instructions To Start A Program Visual C
Instructions To Start A Program Visual C
1. Go to Start and select All Programs -> Visual C++ 9.0 Express Edition -> Microsoft Visual
C++ 2008 Express Edition.
2. Choose New -> Project from the 'File' menu.
3. Choose the project type as 'General' and template as 'Empty Project'. Enter the project name as
'MyFirstCProj' and save it in C:\Workspace.
4. Observe the changes in Solution Explorer.
5. Right click on Source Files folder and select Add -> New Item.
6. Choose the category as 'Code' and template as 'C++ File (.cpp)'. Enter the file name as 'Hello'.
7. Type the below code inside hello.cpp
#include <stdio.h>
void main()
{
int a = 1;
printf("%d", a);
a = a + 1;
printf("%d", a);
}