visual studio 2008 console application - computer sciencezelikovi/csc126/startingvc++2008.pdf ·...
TRANSCRIPT
![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](https://reader031.vdocuments.net/reader031/viewer/2022022112/5c65271d09d3f28c6e8c5237/html5/thumbnails/1.jpg)
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](https://reader031.vdocuments.net/reader031/viewer/2022022112/5c65271d09d3f28c6e8c5237/html5/thumbnails/2.jpg)
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](https://reader031.vdocuments.net/reader031/viewer/2022022112/5c65271d09d3f28c6e8c5237/html5/thumbnails/3.jpg)
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](https://reader031.vdocuments.net/reader031/viewer/2022022112/5c65271d09d3f28c6e8c5237/html5/thumbnails/4.jpg)
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](https://reader031.vdocuments.net/reader031/viewer/2022022112/5c65271d09d3f28c6e8c5237/html5/thumbnails/5.jpg)
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](https://reader031.vdocuments.net/reader031/viewer/2022022112/5c65271d09d3f28c6e8c5237/html5/thumbnails/6.jpg)
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](https://reader031.vdocuments.net/reader031/viewer/2022022112/5c65271d09d3f28c6e8c5237/html5/thumbnails/7.jpg)
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](https://reader031.vdocuments.net/reader031/viewer/2022022112/5c65271d09d3f28c6e8c5237/html5/thumbnails/8.jpg)
12. Run your program by choosing Start Without Debugging from the Debug menu.