122 lab week 8


What You Will Do In Your Lab

By the end of lab, you should have overloaded operator<< for the Time class, and modified timepcex1.cpp to use operator<< instead of Time::display.

OUTLINE

  1. Open X.h, X.cpp and X-client.cpp in a browser. Your GTF will explain how operator<< has been overloaded to provide output for objects of type X.

  2. Open timepc2.h, timepc2.cpp and timepcex2.cpp in a browser. Copy and paste them into emacs files of the same name.

  3. Modify timepcex2.cpp so that it uses operator<< to display objects of type Time, rather than calling Time::display directly.