CIS 250 - Demonstration Programs

Input, Output, File I/O

Passing by reference

  • demoref.cpp: demonstration of reference variable
  • demobyref.cpp: demonstration of old way of passing references using pointers

Classes and structs

  • demostruct1.cpp: demonstration of struct usage
  • demostruct2.cpp: nested structs and an array of structs
  • Point.cpp: simple class demonstration
  • democlass1.cpp: demonstration of class usage
  • democlass2.cpp: using header files with classes
  • Demonstration of many class techniques including dynamic memory allocation
  • Updated person class including operator overloading, friend functions, and a copy constructor
  • polytest.cpp: demonstration of inheritance, polymorphism, and virtual functions
  • example program that covers classes, vector, heapsort, and file input
  • parts.txt: sample data for example03.cpp program

Sorting

Array, vector, stack, queue, deque

Variable and default arguments, overloading functions and operators, templating

Enumerations, namespaces

Data structures

Recursion

Miscellaneous