You are here:About>Computing & Technology>C / C++ / C#> C> C Tutorials> Running the Compiled Example 1
About.comC / C++ / C#

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

From David Bolton,
Your Guide to C / C++ / C#.
FREE Newsletter. Sign Up Now!

Learn how to run Example One

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.

  1. Learning Open Watcom
  2. Typing Your First C Program
  3. Learn how to Enter a Program in C
  4. Compiling the Project
  5. Learn how to run Example One

<< Previous | Next

 All Topics | Email Article | Print this Page | |
Advertising Info | News & Events | Work at About | SiteMap | Reprints | HelpOur Story | Be a Guide
User Agreement | Ethics Policy | Patent Info. | Privacy Policy©2008 About, Inc., A part of The New York Times Company. All rights reserved.