Introductory C++ Examples

percentIncr.cpp Calculate the percent change in a fee.
coinValueSum.cpp Calculate the total amount of money in a set of coins.
uninit.cpp Never use uninitialized memory accidentally.

temperature/ Convert from Celsius to Fahrenheit, or vice-versa.

sizeof.cpp Display how many bytes of storage a variable requires.
asciiValue.cpp Display the ASCII code of any printable keyboard character.
int_max.cpp Display the largest value representable as type int on a given machine.

Ice Cream Cones/ Illustrates switch, for, while, do while control structures; also illustrates a recursion in which a function calls itself.

oneTriangularSum.cpp Triangular sums 1+2+...+N.
triangular.cpp

multTable.cpp A simple nested loop example.