Class Lab

CS 23

Mar. 7, 1997

  1. Create a directory and copy the three files in ~kelliher/pub/cs23/complex/ to it. Copies of the three files are on the following pages.

  2. Compile and run the program.

  3. Modify main() so that it attempts to access one of the private members of one of the Complex variables. Note the compiler error. Remove the modification.

  4. Modify Complex::Add by removing the scope resolution (the Complex::. Note the compiler error. Remove the modification.

  5. Implement the unimplemented class methods.

  6. Modify main() to test the new methods.



Thomas P. Kelliher
Thu Mar 6 19:46:30 EST 1997
Tom Kelliher