1. Home
  2. Computing & Technology
  3. C / C++ / C#

Instructions for Downloading and Installing Visual C++ 2008 Express Edition

By David Bolton, About.com

8 of 10

Type in the Hello World Application

New Project Screen
This is the source of the first application.
// ex1.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <iostream>

int _tmain(int argc, _TCHAR* argv[])
{
   std::cout << "Hello World" << std::endl;
   return 0;
}
On the next page you'll see the default empty program. You can add the above lines manually or in the Visual C++ editor do a Select All (click Ctrl + A) then press delete to wipe out the lines. Now select the text above, do Ctrl+ C to copy it and then in the editor do Ctrl + V to paste it.

On the next page : Compile the program and run it.

Explore C / C++ / C#
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. C / C++ / C#
  4. C++
  5. Learn C++ Programming
  6. Type in the Hello World Application

©2009 About.com, a part of The New York Times Company.

All rights reserved.