Source codes
Here you will find several (very many) source files in C/C++, QuickBASIC (1.0, 4.5), and VisualBASIC . . . The newer programs are added to the end of this list! In many cases the source which is distributed together with the executable (under General Public License) and is not listed here.
- Keyscan.bas (5K) - A program which can display pressed keys or keyboard buffer. See Keytest for a C version, which gives better information, but cannot display keyboard buffer.
- QSort.bas (1K) - A program which demonstrates usage of QuickSort algorithm.
- Nibbles.bas (35K) - This program follows with each copy of QBasic. I have enhanced this popular game by adding the following features: 7 new levels, save game to file, sound control, "buy more lives", and a cheat key Ctrl-L - "jump to next level".
- Htmcnv.bas (10K) (E) - The program, which can strip HTML text of tags and show/save it as plain text.
- Interpre.c (9K) (E) - This is a program that illustrates how one can parse (interpret) a string expression, which contains mathematical operations. The algorithm was developed by Steinar Foss. Also check out a JavaScript variant of this algorithm!
- Interpre.bas (8K) - The same as above, only written in QuickBASIC. The interpreter is somewhat different form C variant as in C I took the advantage of optimization capabilities.
- User library (46K) (ver. 1.20 C) - A collection of useful functions for C++ and QuickBASIC 4.5 and above. The functions included can draw a text-box in various fashions (defined as class in C++), centre or right-align text, clear screen in a shutter-like way, another class gives a controlled and editable input from user (intends to replace C++'s
cgets()
-like functions). QuickBASIC part is also extended with a GetKey function, integer to binary converter, pause, teletype-stile text printing, and some other. Source codes and sample usage are included. QuickBASIC library is also pre-compiled.
- GobX.bas (6K) (E) - This is a small utility to extract files from Dark Forces mission container files, the so-called GOB-files. You can study this source to understand GOB-file structure.
- Abc.c (3K) - abc is an Arbitrary Base Converter. The program converts numbers represented in decimal, hexadecimal, octal and binary formats. It interactively reads the numbers in any of the above-mentioned formats and prints them out in all of these formats. The program is written in portable C code and can (hopefully) be compiled on any platform.
This page has been visited times, plus 155 earlier visits.