Visual Studio Guide
Visual Studio Guide
After clicking the new project, this popup window will open
Then write project name. For example we write Lab6 as a project name and click ok.
After clicking the new item, new popup window will open:
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