CPSC 111 Sections 6 and 8
Lab 12 (Tuesday, November 21)

Objectives

* Cover classes Automatic objects vs. Dynamically created objects Preprocessor infinite loops Classes are like structs... 1. A struct that behaves as a class 2. A class that behaves as a struct Another example of a class... The main function The building class The building header file Yet another example... complex.cpp complex.h Practice with main function of the last example.
Homework:


HAVE A GREAT THANKSGIVING!
If you want to get a head start, or you feel lost, try reading about classes. Look over the examples. Here is an exercise for some practice: car.cpp Note: this exercise is NOT due after thanksgiving. Here are some internet links that may help: * http://library.thinkquest.org/3074/7/index.html * http://www.functionx.com/cpp/classes.htm * http://www.acm.org/corssroads/xrds1-4/ovp.html
Back