You are here:About>Computing & Technology>C / C++ / C#> C> C Tutorials> Typing Your First C Program
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!

Typing Your First C Program

The next step is to add a source file. First check that Watcom has configured it's text editor correctly. Click File then Set Text Editor. In the pop-up window that appears the first line should have c:\watcom\binnt\viw. You can enter the path to any other editor, for example notepad or wordpad on windows. If you change your editor and want to change it back, open this pop-up again and click the default button.

On the IDE menu, click Sources then New Source. In the Directories box, browse to where you want to store your project files. Before you do this, it's probably easier creating the folders with Windows Explorer. I use the path c:\development\c\tutorials\lesson one. Now type in the name of the first file, example1.c in the File Name box, click the Add button then click the Close button. You should now see something like the image above.

On the next page : Enter the first program.

  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.