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

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

By , About.com Guide

9 of 10

Compile and run the Hello World Application

Now press the F7 key to compile it or click on the Build Menu and click Build Ex1. That will take a few seconds and you should see
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========
If there are any failures, view the lines, correct them - it's most likely a mistyped character and recompile again.

After a successful compilation, click on the line that says return 0 and press the F9 key. It should put a small circular arrow in the margin. That's a breakpoint. Now press F5 and the program should run until it hits the line where you pressed F9.

You should be able to click the black box where the output of the application goes and see the Hello World message in the top left corner. On the next page you'll see a screen dump of this.

Now select Visual C++ again, and press F5 again. The program will run to completion and the output window will vanish. If we hadn't created a break point you wouldn't have seen the output.

That completes the installation. Now why not have a look at the C and C++ Tutorials.

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

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

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

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

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

All rights reserved.