C++ Programming : Visual Studio C++

We can write a program with C++ language using Visual Studio C++. Here is the configuration :

  • Open Visual Studio C++.
  • Create a C++ project and select Win32 console application.
  • Give a name to the project (without space or characters) then click OK.

vs-solution

  • Click Next — select Console Application — check Empty project — click Finish.

empty-win32-console

  • Now you are done creating empty project in Visual C++.
  • Go to Solution ExplorerSource Files — Right click — AddNew Item.

solution-new-file

  • Select C++ File (.cpp) file then give it a name — click Add

make-cpp-file

  • You will get a .cpp file in your project. The Source Files is a folder where you put all your .cpp / .c / .cu files and the Header Files is a folder where you put all your .h / .hpp / .cuh files
  • Now you good to go to the coding tutorial.