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

C Tutorial - Lesson One Learning How to Compile With Open Watcom

By David Bolton, About.com

5 of 5

Learn how to run Example One

Screen shot of Running Example 1
Because this is a Command Line application, we have to switch to the Dos Box to run it.

Click the Windows Start button then click run. Type in cmd into the open box and press enter. Now switch to the folder where your application is located. In my case this is in C:\development\c\tutorials\lesson one so type in

cd C:\development\c\tutorials\lesson one
and press enter.

The compiled application takes its name from the project so in my case it's ex1.exe. Type ex1, press enter and you should see Hello World. If you don't, check that the file exists in the folder, perhaps under another name. If all else fails, redo this tutorial.

Well Done! This completes this lesson.

Now you're ready to learn how to handle numbers in C in the next lesson.

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. C Tutorials
  6. Running the Compiled Example 1

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

All rights reserved.