Some help for users of Turbo C/C++ and Borland C/C++ (for DOS)
There are some settings that will help you to bring the pieces together to get started:
Supposing you have Turbo C/C++ (or Borland C/C++) loaded in the directory C:\TCPP
- Put your source code for your projects in a directory: C:\TCPP\ECE660
- In the Options\Directories option:
- set the Include directory to: C:\TCPP\ so it can find graphics.h, etc.
- set the library Directories to C:\TCPP\LIB so it can link in stuff
- set the Output Directory to: C:\TCPP\ECE660 so your .exe file goes here
- set the Source Directories to: C:\TCPP\ECE660
- When you start up Turbo C:
in File\Change dir.. menu, set it to C:\TCPP\ECE660
(so it can find your include files and .BGI file)
- Make a copy of EGAVGA.BGI (you'll find it in C:\TCPP\BGI) into C:\TCPP\ECE660
- In Options\Linker\Libraries menu, put an X in 'Graphics Library' (by pressing the
space bar)
Note: you can get a page of on-line help for any Turbo C function, such as lineto(),
closegraph(), getchar(), etc:
- type the function name you want to know more about anywhere on the edit screen;
- place the cursor inside the name;
- press CTRL F1 (i.e. function key 1).
Some other hints:
- alt W Z zooms the edit window to full screen
- in Options\Environment\Preferences: put an X beside Auto-Save Editor Files, and use
Screen Size of 43/50
- in Options\Compiler\C++ options: use C++ always, so you benefit from the C++
(more rigorous) compiler;
- in Options\Make\ Break Make on: normally choose: Warnings, since if you get a
warning you should probably cope with it before proceeding;
Good Luck!