8
Visual Studio 2008 Console Application 1. Use the start menu to Open Visual C++ 2008. You might have the Express Edition installed or you might have to open Visual Studio and choose C++ 2008. The following screen shots have the Express Edition, so your screen might look slightly different. The steps to follow are the same. 2. To open a new project, choose File, New, Project

Visual Studio 2008 Console Application - Computer Sciencezelikovi/csc126/startingVC++2008.pdf · Visual Studio 2008 Console Application 1. Use the start menu to Open Visual C++ 2008

  • Upload
    donhan

  • View
    225

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Visual Studio 2008 Console Application - Computer Sciencezelikovi/csc126/startingVC++2008.pdf · Visual Studio 2008 Console Application 1. Use the start menu to Open Visual C++ 2008

Visual Studio 2008 Console Application

1. Use the start menu to Open Visual C++ 2008. You might have the Express Edition

installed or you might have to open Visual Studio and choose C++ 2008. The following

screen shots have the Express Edition, so your screen might look slightly different. The

steps to follow are the same.

2. To open a new project, choose File, New, Project

Page 2: Visual Studio 2008 Console Application - Computer Sciencezelikovi/csc126/startingVC++2008.pdf · Visual Studio 2008 Console Application 1. Use the start menu to Open Visual C++ 2008

3. Under Visual C++ choose Win32, then highlight Win32 Console Application under Templates in

the right hand side of the open dialog box.

Page 3: Visual Studio 2008 Console Application - Computer Sciencezelikovi/csc126/startingVC++2008.pdf · Visual Studio 2008 Console Application 1. Use the start menu to Open Visual C++ 2008

4. Type a name for the project. The solution that contains the project will then receive the same

name.

5. Click OK.

Page 4: Visual Studio 2008 Console Application - Computer Sciencezelikovi/csc126/startingVC++2008.pdf · Visual Studio 2008 Console Application 1. Use the start menu to Open Visual C++ 2008

6. Click Application Settings.

7. Click Empty Project, and then Finish.

Page 5: Visual Studio 2008 Console Application - Computer Sciencezelikovi/csc126/startingVC++2008.pdf · Visual Studio 2008 Console Application 1. Use the start menu to Open Visual C++ 2008

8. Add a source file to your project by right clicking Source Files in the Solution Explorer window.

Choose Add, New Item.

Page 6: Visual Studio 2008 Console Application - Computer Sciencezelikovi/csc126/startingVC++2008.pdf · Visual Studio 2008 Console Application 1. Use the start menu to Open Visual C++ 2008

9. With Visual C++ chosen on the left hand side of the window, choose C++ File (.cpp) under

Templates.

10. Type the following code into the source file.

#include<iostream>

using namespace std;

int main()

{

cout << "Hello World";

return 0;

}

Page 7: Visual Studio 2008 Console Application - Computer Sciencezelikovi/csc126/startingVC++2008.pdf · Visual Studio 2008 Console Application 1. Use the start menu to Open Visual C++ 2008

11. Build your project using the Build menu and choosing Build Solution. The results of the

compilation and the build will be shown in the output window.

Page 8: Visual Studio 2008 Console Application - Computer Sciencezelikovi/csc126/startingVC++2008.pdf · Visual Studio 2008 Console Application 1. Use the start menu to Open Visual C++ 2008

12. Run your program by choosing Start Without Debugging from the Debug menu.