Follow these instructions to get started with a C++ project in Visual Studio. We will begin with an empty Console project. This allows the best approximation of ANSI C++
- Start Visual Studio
- Go to FILE/ NEW PROJECT
- Choose OTHER LANGUAGES/C++
- Choose “WIN32 Console Application”
- Give the solution a name click Next
- The Win32 Application Wizard opens
- Click Application Settings
- Leave application type Console Application
- Under additional options choose empty Project
- Click finish
- . Click Solution Explorer—you should see three folders
- Right click source files and click ADD
- ADD NEW ITEM
- Choose C++ FILE (.cpp)
- Give it a Name
- Click ADD
- In the code put
#include <iostream>
using namespace std;
int main()
{
}
Now you are ready to start