C++ Visual Studio 6.0 Tutorial
C++ Visual Studio 6.0 Tutorial
Microsoft Visual Studio 6.0 Tutorial Building and Running a Visual C++ Console Application
This tutorial will give you an overview on how to use Microsoft Visual Studio 6.0 to edit, compile, and run a sample C++ console application. 1. Install Microsoft Visual Studio 6.0 on your PC. The installation will complete successfully if you use Windows XP but it may not be with Windows Vista. For Windows Vista install Microsoft Visual Studio 2005 or 2008 and see the other tutorial to build your program using it. To get the software CD please see your instructor. 2. Open the Microsoft Visual C++ 6.0 from the start menu as shown below.
3. You will see the following window. When you open the software for the first time you may see some hints and tips given to you, you can pass through them.
4. Now press the New icon which appears next to the red arrow shown below.
5. Now a new text file will be opened as shown below and see it has a default name of Text1.txt.
6. Before start coding you must first save the text file to make it a source C++ file. This is done by pressing File Save As from the menu bar and change the name of the file to any name you want with the extension .cpp and save it on the location you want as shown below.
8. Then press the Compile Icon shown next to the red arrow below.
9. If you have any syntax errors it will appear in the bottom window where it will display the number of errors you got. Scroll the bar to the up direction to see the errors ( if any) and double click on each error will cause an arrow to appear on the source code which show you the line code in which the syntax error exist. However, in our case there is no errors so 0 errors appears in this window.
10. Now press the Run Icon to see the output of your program.