Starting a console application in Microsoft Visual C++ 2010 Express
Starting a Microsoft Visual C++ Studio Console Application
- Open Microsoft Visual C++ 2010 Express
- In the menu go to File – New – Project
- Click on Visual C++ and highlight Win32 Console Application
- Give the new project a name, default directory, and Solution Name
- Click OK and another GUI will pop-up
- On the Welcome to the Win32 Application Wizard click Next >
- On the Application Settings remove the check box from Precompiled Header and check Empty
- Click Finish
- When the new project opens right click on Source Files
- Go to Add – New Item…
- When the wizard opens highlight C++ File (.cpp) and give it the name of main.cpp
- Click Add
- Enter the following in the main.cpp file
#include <iostream>
int main()
{
return 0;
}
Place your code after the first curly brace and before the return 0; to get started. Happy coding.