An Engineer's Literature

Language spoken by engineers!

Lesson1: Getting Started

To create a new Project, do the following:

  1. Open Microsoft Visual C++ 2008
  2. Click File, then new, and click Project
  3. Select Win32 then Win32 Console Application
  4. Key in the project name and choose the location where to save the file
  5. Click Next
  6. And tick Empty Project
  7. Under Samples at the right taskpane, right click source files then click Add new item
  8. Click C++ file (.cpp)
  9. Then enter the file name and click add
  10. 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:

Picture1

To run the program:

  1. Press F7
  2. Then Ctrl+F5

This should be the result:

First

One Response to “Lesson1: Getting Started”

  1. [...] Lesson1: Getting Started [...]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.