Home > Sample Codes

Sample Codes

 


Here are the best codes revealed only for your eyes!
Check them out and learn as much as you can from them.

Title

Description

 Author

Graphics

ASgfxlib.zip A  graphics library.  
stars.zip A star field simulation. Sean Bugel
sgfx2.cpp This is a version of the program below, designed to be compatible with other compilers. Curt Smith
sgfx.cpp This is another svga graphics file. It requires assembly, however. Aleksandr G. Chukhlebov
alexc@miacom.net
svga.zip This source will initialize the screen into SVGA(640x480 256 colors) mode. Patrick Lorton
lortonent2001@yahoo.com

Games

Worm.zip A game similar to snaker, but with four players and no AI. Phoenix
blowup.zip This is like minesweeper, but for DOS. There is some mouse support.  
slot.cpp A slot machine game. Joe Tchamitchian
snaker.zip A game similar to nibbles, with some changes & enhancements made here and there. Eric Anderson

Utilities

waveplay.cpp This was coded by  Steven H. Don. It will play wav files, but you have to use it as an include file. Steven H. Don
encrypt.zip A file that replaces the old coder.c. Brett Taylor
ksbet.zip With KBSET you can set keyboard's delay value and the repeat rate.. Chukhlebov Alex
recogn.zip A program designed to recognize user input of different patterns, like letters, and numbers. It is programmed already for numbres, and it is possible to teach it new characters. Albert Archwamety
shift.zip Code to detects the shift, ctrl, alt status of the keyboard. Rohan Dang
(rohandang@email.com)
Miscellaneous
Style.C Suggested coding style guidelines

All the following have been selected from
www.snippets.org

Hires.Asm Switch to 43/50 line mode on EGA/VGA  
Where.C Search for a file  
Dspclock.C On-screen TSR clock  
Cursize.C Set the cursor size  
Bigfac.C Do large factorials using ASCII multiply  
Grep.C "Real" grep - free with some strings  
Cmtremov.Cpp Strip comments from a source file  
Cmtxtrac.Cpp Extracts comments from a source file  
Fsif.C Search a binary file for a string  
Strnsub.C Search for a string, replace it with a new string  
Keylocks.C Caps/Num lock set/clear functions  
Faskbhit.C Fast kbhit(), kbflush(), ext_inkey()  
Getyn.C Get a yes/no response with prompt, default, and timeout  
Mouse.H Header w/ prototypes  
Mouse.C Essential mouse stuff  
Scrnpick.C Demo, retrieves text from screen using mouse  
Reboot.Asm Reliable cold/warm boot for DOS, Windows 3.1  
Sound.H Sound functions header  
Sound.C Speaker control functions  
Mktone.C Tone generation functions  
Playlib.C Background music package  
Playdemo.C Demo of backgroud music package  
Cursor.C Cursor management/manipulation  
Cursor.H Cursor management/manipulation  
Scroll.C Scroll screen function  
Shel2Dos.C Shell to DOS from a running program  
Joystick.C Joystick support functions  
Snpdosys.H Header file for DOS system-level function  
Fln_Fix.C Crunch dot directories, verify DOS-valid paths  
Intel.H Header for x86 hardware functions  
Cpuid.Asm Determine type of CPU/coprocessor in use  
8087_Sav.Asm Saves/restores 80x87 environment  
Ansicode.H Macros for ANSI.SYS screen control  
Ansitest.C Test demo for ANSICODE.H, including remote detection  
Dosgetch.H Used by ANSITEST.H  
Dosgetch.Asm Used by ANSITEST.H  
Search.H SNIPPETS Header for string searching functions  
Getopts.H Header for Getopts.C  
Regkey.H Header file for REGIT.C and CHKREG.C  
Regit.C Generate registration key  
Chkreg.C Validate registration key  
W_Wrap.H C header w/ prototypes and enum'ed constants  
W_Wrap.C C functions  
Center.C Center a wrapped line  
Mdasort.C Test program demonstrating array sorting  
Numcnvrt.H Header for SNIPPETS numerical <=> string conversions  
Rand1.C Random number generator  
Rand2.C Random number generator  
Rg_Rand.C Minimal random number generator  
Perm_Idx.C Determine permutation index  
Rad2Deg.C Convert radians <=> degrees  
Cfg.H Read configuration file dat  
     




POSTING YOUR OWN HEADER FILE
: If you want your own header file to be listed her,
mail it to us with a small description about it at turbocpp@email.com.

 

 
[ Back to Home ]


Copyright © 2000  RAS Website Creations, All rights reserved.