0% found this document useful (0 votes)
133 views

C++ Visual Studio 6.0 Tutorial

This document provides a tutorial on how to build and run a basic C++ console application using Microsoft Visual Studio 6.0. It outlines installing Visual Studio 6.0, creating a new project, writing sample code to print "Hello World", compiling the code, and running the application to view the output. The tutorial is intended to give readers an overview of the basic workflow and steps for editing, compiling, and executing a C++ program in the Visual Studio integrated development environment.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
133 views

C++ Visual Studio 6.0 Tutorial

This document provides a tutorial on how to build and run a basic C++ console application using Microsoft Visual Studio 6.0. It outlines installing Visual Studio 6.0, creating a new project, writing sample code to print "Hello World", compiling the code, and running the application to view the output. The tutorial is intended to give readers an overview of the basic workflow and steps for editing, compiling, and executing a C++ program in the Visual Studio integrated development environment.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

C++ Programming (408110)

Eng. Ghada Al-Mashaqbeh

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.

C++ Programming (408110)

Eng. Ghada Al-Mashaqbeh

4. Now press the New icon which appears next to the red arrow shown below.

C++ Programming (408110)

Eng. Ghada Al-Mashaqbeh

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.

C++ Programming (408110)

Eng. Ghada Al-Mashaqbeh

7. Now write the code of your program as shown.

8. Then press the Compile Icon shown next to the red arrow below.

C++ Programming (408110)

Eng. Ghada Al-Mashaqbeh

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.

C++ Programming (408110)

Eng. Ghada Al-Mashaqbeh

11. Finally this is a snap shot of the output.

You might also like