0% found this document useful (0 votes)
93 views4 pages

Microsoft Visual Studio Express

To create and run a simple "Hello World" console application in Visual Studio Express: 1. Create a new Win32 Console Application project and select the Empty project template. 2. Add a new C++ file to the project and write a "Hello World" program using iostream and cout. 3. Compile the program using Ctrl + F7 and run it using Ctrl + F5 to display "Hello World!" in the console.

Uploaded by

Rumesh
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)
93 views4 pages

Microsoft Visual Studio Express

To create and run a simple "Hello World" console application in Visual Studio Express: 1. Create a new Win32 Console Application project and select the Empty project template. 2. Add a new C++ file to the project and write a "Hello World" program using iostream and cout. 3. Compile the program using Ctrl + F7 and run it using Ctrl + F5 to display "Hello World!" in the console.

Uploaded by

Rumesh
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/ 4

Microsoft Visual Studio Express

To compile and run a simple console application in Visual Studio Express:


File -> New Project...

Here, on the left-hand side, select Templates -> Visual C++, the on the central part, select
Win32 Console Application:

On the bottom, you have the option to give a name to the project and select a location where the
files will be stored. The default options are fine, but you can also change them to better fit your
needs.
Now click [OK]

This will open the Win32 Application Wizard:

Click [Next].

Leave "Console application" selected, and in Additional options select Empty project. Other options are
not needed, but won't bother either.
Now we have an empty project. We need to add a file to it. For that:
On the Solution Explorer at right, look for Source Files under your application. Right-click -> Add -> New
Item...

Here, add a new C++ file

You can give it any name you want with a .cpp extensions, such as example.cpp. After clicking OK, the
main window will display en editor to edit this new C++ file. Write the following in it:

// my first program in C++


#include <iostream>
int main()
{
std::cout << "Hello World!";
}

Press Ctrl + F7 key to compile.


Press Ctrl + F5 key to run the program.

You might also like