C++ Programming Examples
- hello, world
- a simple example of terminal I/O
- an example of const parameters and
const-reference return types
- an example using new and delete
- an example using references
- classdefn:
a folder containing three successive versions of a simple
class definition, illustrating header files, source files, constructors
with initializers, accessors, and member functions. Also includes a
"pair" class representing a Cartesian ordered pair, with several
overloaded operators, developed through several successive versions.
- inheritance:
a folder containing three versions of a Person/Student
class hierarchy, three of a Vehicle class hierarchy, and one of a Pet
class hierarchy.
- linked lists and templates:
a folder with three examples of a linked-list implementation:
first for ints, then for both ints and floats, then genericized to
handle any element type.
Last modified:
Stephen Bloch / sbloch@adelphi.edu