Lawrence Technological University
College of Arts and Science
Department of Mathematics and Computer Sciences
Introduction to C, MCS 1142
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:
- 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!
- 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.
- Make a directory for the class. Click
Start|Programs|Accessories|Command Prompt and proceed as
Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.
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
- 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
- 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.
- 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
- Make a template for your class programs.
- Start with a clean slate. As soon as you start C++ Builder
use File | Close All from the menu bar. If the Object Inspector
panel is open on the left, click it closed. If the left
part of the source code window is taken up by the Class tree
panel, click that panel closed.
- Use File | Open Project or File | Reopen to retrieve your
- Bring mcs1142.c into the code editor window by double clicking the
name "mcs1142.c" in the Project Manager window
(View | Project Manager), or
positioning the cursor on "mcs1142.c" in the first line of
mcs1142.bpf in the code editor window and right clicking
and selecting "open file at cursor".
- Change the program name and date and purpose to reflect your new
project. Be sure not to use blanks or more than 8 characters
in the name.
- Assuming you are working on Assignment 2 and the working folder is
c:\mcs1142, Use File | Save As to save the program file as
- Similarly, Use File | Save Project As to save the project as
- Now you are ready to start work on Assignment 2...
- Close C++ Builder 5.
- To reopen Assignment 2 for further work, use the same procedure
as for the template project or double click the Shortcut to mcs1142
icon on the desktop and then double click the asm2.bpr icon.
Revised January 5, 2003