Hello Folks, Today I am gonna guide you how to setup Visual Studio to run C++ Console applications.
Firstly, open Visual Studio and click on File -> New -> Project. Then select Visual C++.
Click on Install Universal Windows Platform Tools.
Click Ok. Now you will be prompted to the below window.
Click Install. Now You will be prompted to Visual Studio Features Window.Check Visual C++ as per the following figure.
Now, Click Next. Then, You will be shown a window as in the below figure.
Click UPDATE and accept the administrator privileges. It installs all the required files and this process takes few minutes to complete and click on Finish.
Now Open Visual Studio 2015 and click on New Project -> Visual C++ -> Win32 -> Win32 Console Application. Then Click Ok.
Now you will be shown the following window.
Check Empty Project and click Finish.
Now Select Source Files -> Add ->New Item.
Now an Editor will be shown, write the code and Enjoy Coding…….
Ctrl + F7.
To Run :
Click on Local Windows Debugger above the Editor.