How to Create a Project With Microsoft Visual Studio Express
Visual Studio Express 2012 is a free IDE that can be used for
C++ programming. This freeware requires registration.
You may download it at http://www.microsoft.com/visualstudio/eng/products/visual-studio-express-for-windows-desktop.
create a C++ program, Microsoft Visual Studio Express 2012
requires that you create a project for your program. This
tutorial demonstrates how to create a project.
It demonstrates only how to create a general
(non-windows) project. It does not provide project details
beyond the minimum steps required to get started.
This is the Microsoft Visual Studio Express 2012 screen. To begin, click on the New Project... link.
On the New Project project page, select Visual C++ -> General and Empty Project.
Enter a Name and Location for the project.
should now see the Solution Explorer window on the right side of the
Microsoft Visual Studio Express 2012 screen. In it you'll see the
"contents" of your new project.
You now need to add a C++ source file. Right mouse click on Source Files.
In the first pop-up, select Add. The select New Item...
Select Visual C++ -> C++ File (.cpp).
Then enter a name for the C++ source file. Make sure you keep the .cpp extension. You can also change the file location if you want.
You now see an empty editor. Here you type in your source code.
Now let's compile the code. From the menu, select BUILD. From the BUILD menu, select Build Solution.
You should see the results of your build in the Output window below.
Assuming the build was successful, then you can now execute your program. To do this, click on the DEBUG menu and select Start Without Debugging.
program output should then flash on the screen, but it will not stay so
you can observe it. This is not an issue in the Microsoft Visual
Studio non-Express versions.
To be able to view the program output, you need to "pause" the exection. To do this, add
to the end of your program. Then run it again.
Here's your program output.
Remember to save your program before you exit.