Lesson1: Getting Started
To create a new Project, do the following:
- Open Microsoft Visual C++ 2008
- Click File, then new, and click Project
- Select Win32 then Win32 Console Application
- Key in the project name and choose the location where to save the file
- Click Next
- And tick Empty Project
- Under Samples at the right taskpane, right click source files then click Add new item
- Click C++ file (.cpp)
- Then enter the file name and click add
- In the work area, type the following codes:
// This is my first C++
#include <iostream>
using namespace std;
int main()
{
cout<<”Welcome to your first C++ program. “;
return 0;
}
It should look like this:
To run the program:
- Press F7
- Then Ctrl+F5
This should be the result:



C++ Tutorials « An Engineer's Literature said
[...] Lesson1: Getting Started [...]