0% found this document useful (0 votes)
27 views

Visual Studio Guide

To create a C++ project in Visual Studio, open a new project and select an empty project. Name the project and click OK. Then add a new C++ file, name it, click Add, and paste sample code that prints "Hello World" to the console. Build and run the program to see the output window, and take a screenshot using Ctrl + Alt + Prt Scrn to capture it.

Uploaded by

Muhammad Khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views

Visual Studio Guide

To create a C++ project in Visual Studio, open a new project and select an empty project. Name the project and click OK. Then add a new C++ file, name it, click Add, and paste sample code that prints "Hello World" to the console. Build and run the program to see the output window, and take a screenshot using Ctrl + Alt + Prt Scrn to capture it.

Uploaded by

Muhammad Khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

Open the visual studio

Click new project

After clicking the new project, this popup window will open

Click the empty project:

Then write project name. For example we write Lab6 as a project name and click ok.

Right click the resource file add new item:

After clicking the new item, new popup window will open:

Click c++ file (cpp)

Write file name where write <enter name>


Remove <enter name> and write any name. e.g Problem1;

After write name of file, click Add:

Then visual studio will open the C++ file and we will write the program.
Copy the following code and paste in your file. Build the solution and run (play)

#include<iostream>
#include<string>
using namespace std;
void main()
{
cout<<"Hello word"<<endl;
system("pause");
}

After building and compiling the program following window will appear

For screen shot, ctrl + alt + prt scrn to take the screen shot of console screen

You might also like