PC Software to Compile/Execute in Console Mode on Win98/NT/2000


The system is configured so that you can edit/compile/execute with all software on one floppy, which you can easily carry with you to any machine (on or off campus). Click here for a sample program. The manual is ec.doc.

Click here for instructions on how to use the XDB database system. The manual is xdb.doc.  The two external types that are included are string and date.

  1. Create a temporary directory C:\CS259 on any HARD disk.
  2. MOVE the file (gold.zip) from your original floppy to the empty directory (CS259) on your hard disk. THEN DELETE gold.zip on the floppy disk.
  3. If you don't delete the zip file from the floppy, you'll run out of space.
  4. [Skip this step if you aren't making a floppy version of the system.] Unzip (pkzipc -extract gold.zip) on your hard disk.  See www.pkware.com for a copy of pkzip.
  5. Insert the original now-empty floppy. Type a: to switch to it and make a directory entitled cs259 (md cs259). Then create two sub-directories mod and work. Change directory to mod (cd a:\cs259\mod) and then copy all the files from the hard disk directory (CS259) to a:\cs259\mod, then delete the space that you used on the hard disk.
  6. Change directory to a:\cs259\work to do all your programming.  READ THE INCLUDED MANUAL ec.doc.
  7. To compile a progam in a DOS shell window
  8. a) the program must have the .cpp suffix e.g. test.cpp
  9. b) type ..\mod\c35    test.cpp
  10. c) any errors will be output to a .lst file e.g. test.lst (L S T)
  11. To run a program in a DOS shell window
  12. a) the program must have a .obj suffix e.g. test.obj
  13. b) type ..\mod\r36    test
  14. c) you can type CTRL-C to terminate a program; CTRL-Z is end-of-file
  15. To run a windows program
  16. a) the program must contain #include <Graphics.h>
  17. b) type ..\mod\rw     test

Sample Program (hello.cpp)

#include <iostream.h>
void main()
{
cout<<"hello world\n";
};

The compiler will generate hello.LST if syntax errors are detected; otherwise, the compiler generates hello.obj (the executable instructions) and hello.rfc (the encoded symbols in the program). hello.obj can be executed using either the DOS (r36.exe) or WIN (rw.exe) versions of the runtime.


How to run XDB

  1. Create a DOS window (START  PROGRAMS  Accessories  CommandPrompt
  2. cd a:\cs259\work or c:\cs259\work
  3. copy ..\mod\r36.exe .
  4. copy ..\mod\rdb.hlp .
  5. copy ..\mod\cstate.sdb .
  6. type r36 xdb to start the database system
  7. you should get a command prompt >
  8. type help; ENTER for a list of commands
  9. type exit; ENTER to exit XDB
  10. read the manual in ..\mod\xdb.doc