Saturday, January 10, 2015

How to compile C++ program in Microsoft Visual Studio

Step 1: Select file, then new project.

Step 2: Select "Visual C++" then click on Win32 console application.

Step 3: Write project name and click ok.

Step 4: Click on "application setting".

Step 5: Tick the "empty project" and click "finish".

Step 6: Write click on "source file".

Step 7: Select "new item" then "add".

Step 8: Select ".cpp" file. and in the below box type the source file name with the extension ".cpp". If you are programming in "C" then select ".c" extension.

Step 9: Type source code of the program.

Step 10: Press "ctrl+f5". If your code is correct then you will see the output of the program otherwise error message.

If you have any question, feel free to ask. 

No comments:

Post a Comment