C/C++ Programming Page

This page consists of my programming studies of C/C++.  Below are downloadable programs for people to review.  They are nothing fancy, just some assignments that I had to do when attending Monterey Peninsula College when we lived at the Presidio of Monterey Annex.

Most of these have explanations of what they do inside the code itself, but it would be better if I put a description beside the files itself. I'll be doing that soon. For now, the names of the files should explain what most of them do.

Two are also executable. I used Borland C++ to compile the code and make those executable files. They can be double-clicked on (after downloading them to your computer), then the computer will open up a Windows "DOS" window, executing the file.

adding.cpp Adds positive, negative integers; zero is stop signal.
average.cpp Averages 3 float (decimal) numbers.
birthyea.cpp Calculates a person's age.
demohome.cpp Creates statistical data of classroom grades.
demoray.cpp Same as above, but this or the others is a more refined program.
Demoray1.cpp Same as above, but this or the others is a more refined program.
designs.cpp Creates screen designs - this code may need to be modified to run on your computer.
Inkyfile.cpp Designs.cpp needs this file in order to run properly, I think.
lastprog.cpp This was my final project.  It manipulates data inside matrices.
minmx1.cpp Creates addition problems, computes sum, max, min, and average of #s
minmx2.cpp Code makes you input numbers, it averages, and picks the min./max. and mean #s.
minmx2.exe (executable) Used Borland C++ to create an executable file of Minmx2.cpp.
money.cpp Code takes a certain money amount and breaks it down into X amount of dollars, quarters, nickels, etc.
Mult1.cpp Multiplication tester for kids.  Makes multiplication problems, asks for solution, tells if its wrong/right, gives 3 tries to get correct answer, counts how many wrong/right answers given, and reports how many correct/incorrect answers were given.
mult2.cpp Same as Mult1.cpp, but it asks name, uses name throughout program, asks for paramaters for program (how many problems, highest # to use) gives letter grade results at end of test.
mult2.exe (executable) Executable of mult2.cpp, made with Borland C++.
pricing.cpp This was written by the instructor for us to use when creating the code for Money.cpp. Has alot of remarks within the code to explain what the code does.
prime.cpp This program takes 2 numbers and figures out the prime numbers between the two.
prime2.cpp Same as prime.cpp, but has more functions.
primehom.cpp Same as primhom.cpp, but uses outputs graphics.
shapes.cpp Creates shapes.  demo created by instructor.
shapes2.cpp Modified version of shapes.cpp, adds solid and hollow triangle shapes
test.cpp Same as mult#.cpp series. May or may not have more functionality.
testdriv.cpp I think this code is required when using the shapes.cpp code.  I'll check it out soon.
vitodef.h You will need this to run my files, unless you are willing to go thru the code and change little things.  Downloading this is easier...you may still have to hash thru a bit of code but not much.  This file just has #include calls and #define functions.

Return to WIGGLIT.com

1. WIGGLIT's Xanga Web Log
2. Motorcycles
3. Cars I've Owned
4. Other Hobbies
5. Drag Results
6. Impressions of Japan
9. SCC Is Unprofessional
10. What Stock DSMs are good for in Quarter Mile Times
11. WIGGLIT's Archives
12. Lt. Sinclair's Enemy Engaged: Comanche Vs. Hokum Page
13. Wigglit's Bio Page

Return to top of page

Copyright 2001-2013, Ronald Sinclair
Revised: 17 October 2013
URL: http://www.wigglit.com/