Thank you for downloading Visual Studio and start your first C++ journey!
First, understand the layout and views once you launch Visual Studio 2015:
Next, review the standard build process for a Visual Studio project:
Now, start building your first C++ project by choosing the project template. If C++ is not an already installed language in Visual Studio, you need to install Visual C++ 2015 Tools for Windows Desktop:
After installing the Visual C++ 2015 Tools for Windows Desktop, you can choose the Win32 Console Application template and create your HelloWorld project:
Click Finish to exit the Win32 Application Wizard
You can see your first C++ project:
Replace the code with below lines:
using namespace std;
cout << "Hello World! ";
Next, add a breakpoint by clicking the grey area in front of line 12:
Compile and run your project by clicking the green triangle in the tool bar (Local Windows Debugger) or press F5. Visual Studio allows single-click for build and debugging.
Click Yes to build the project:
You can see a "Hello World!" in the console window.
If the console window immediately closes, you need to set the breakpoint in step 8.
If you are on Windows 8.1, you need to re-run the installer for Visual Studio, click modify, select languages, and choose C++.
Congratulations on your first C++ project! Please let us know whether you find this article useful or not. Thank you!