C / C++ / C#

  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

2 of 5

Typing Your First C Program

Screenshot of Watcom IDE Project
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.

Explore C / C++ / C#

About.com Special Features

Build Your Own Website

Step-by-step advice on how to do everything from choosing a Web host to promoting your content. More >

Connect Your Home Computers

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

C / C++ / C#

  1. Home
  2. Computing & Technology
  3. C / C++ / C#
  4. C
  5. C Tutorials
  6. Typing Your First C Program

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

All rights reserved.