Sample C and C++ Programs

Here are several C and C++ programs that I have made.
To download, Shift-Click on the name of the file.

Program NameDescription
Madlibs.C A program consisting of six Madlibs, all of which are copyrighted
materials of Madlibs®.
Requires the indef.h Header File.
Pi.C A silly program which determines a phony value of π.
Requires the clrscr.h Header File to operate.
Aptitude.C Another silly program that determines your most likely career. THIS
IS NOT FOR REAL!!!
Requires the clrscr.h Header Files to operate.
WrongString.C A program that will mess up random letters or numbers in a string
of text that the user creates.
Requires the delay.h Header File
Header NameDescription
Indef.H Includes various definitions for the input() function
using #define.
ClrScr.H Uses windows programming to clear this screen. This is done to
make this program compatible with newer versions of MSVC++.
Delay.H A function that uses the clock() function to delay the computer
by
x milliseconds. 1000 ms. = 1 second.
Input.H. A function that uses bounds checking to make sure that the
user doesn't type in more than a variable will hold.













These programs are created solely by me and are to be used primarily
as educational tools only. They are not production value products!
Did you honestly think that I would even make a production-value
program available for free on the Internet?

I have also made an HTML tutorial. If you are interested, go to
Jared's HTML Tutorial.