1. Start Visual Studio .NET
2. From the File Menu select NEW (click on it)
3. From the submenu select PROJECT (click on it)
4. ON the lefthand side select "Visual C++ Projects"
5. On the righthand side select "Win32 project"
You will probably have to scroll down to find "Win32 project"
6. In the box at the bottom select a name for the project.
This name will become the folder-name for your project files.
7. In the box below the name, select the folder in which your project will reside.
If you're using a lab computer, you might want to make this point to your USB pen drive.
A good name for program zero is P0.
8. Click OK.
6. On the Win32 application wizard, select "Application Settings"
7. Under "Application Type" select "Console Project"
8. Under "Additional Options" click "Empty Project"
9. Click Finish
10. On the righthand side of the Visual C++ window you will see your project name
followed by a bunch of folders.
11. Right-click on your project name.
12. From the menu select "Add"
13. From the submenu select "Add New Item"
14. On the left side, select Visual C++
15. On the right side select C++ File (.cpp)
16. In the box next to the bottom, change the name of your file
so it matches your project name followed by ".cpp"
"P0.cpp" would be good for program zero.
17. Make sure that the bottom box contains the path to your project directory
18. Click "Open"
19. Type the following text into your file. (You will learn to add more stuff to this
in lab.)
#include
<iostream>
using
namespace std;
int
main()
{
return 0;
}
20. From the "Debug" menu select the red exclamation point "Start without debugging"
21. If Visual C++ asks you any questions, click "Yes"
22. When you are done looking at your output window, press "ENTER".
That's it. Unfortunately, this program doesn't do anything, but the rest of the course will teach you how to fix that.
--P. Maurer