Lawrence Technological University
College of Arts and Science
Department of Mathematics and Computer Sciences

Introduction to C, MCS 1142

Syllabus | Handouts | Assignments | Lecture Notes

Getting started and setting up your C compiler

Before beginning to use the C compiler for command line or "console" programming, consider doing the following things to get your computer ready for programming work:

  1. Be sure and follow the entire Help Desk procedure to set up your TechBook initially. If you do not make yourself an an administrator on your own TechBook, Borland C++Builder5 may not run correctly because it cannot make necessary changes to the Windows Registry!
  2. Show the file extensions. In Windows 2000, double click on My Computer and then go to Tools | Folder Options. On the View tab, in the Advanced settings box, mark the Show hidden files and folders radio button and uncheck the Hide file extensions for known file types box. Then click Apply and close the Options window.
  3. Make a directory for the class. Click Start|Programs|Accessories|Command Prompt and proceed as below
    Microsoft Windows 2000 [Version 5.00.2195]
    (C) Copyright 1985-2000 Microsoft Corp.
    C:\>mkdir mcs1142
    C:\>cd mcs1142
     Volume in drive C has no label.
     Volume Serial Number is 3056-01A8
     Directory of C:\mcs1142
    01/04/2003  06:59p      <DIR>          .
    01/04/2003  06:59p      <DIR>          ..
                   0 File(s)              0 bytes
                   2 Dir(s)   1,982,091,264 bytes free
  4. Open C++ Builder 5. Use Project | Options... and then select the Directories/Conditionals tab. Use ... to set both the intermediate and final output to c:\mcs1142. Then check the Default box and click Ok. Close C++Builder 5 without saving Project1.
  5. Use Start|Settings|Taskbar & Start Menu and select the Advanced Tab. Clicking Advanced... should get you to the Start Menu folder for your User ID. Go to the Programs\Accessories sub folder and select the Command Prompt black window icon. Right click and drag it to make a copy on your desktop. Then right click on the new desktop copy and select Properties. On the General tab, change the name from Command Prompt to mcs1142. On the Shortcut tab change the Start In to c:\mcs1142. For now on the Options tab, leave Quick Edit Mode unchecked and leave Insert Mode checked.
  6. Click on the My Computer icon and then on Drive C: Right click the mcs1142 folder icon and drag it to the desktop to Create a Shortcut Here.
  7. Make a template for your class programs.

Using C++ Builder efficiently


Revised January 5, 2003