| Object Oriented Programming and Design with C++ | Dr. Aaron Naiman |
| Course #15001301 | <naiman@math.jct.ac.il> |
| Spring, 2006 | Office hours: Monday, 13:30-14:30 |
Add to your class the following capabilities
operator<<(),
operator>>()
operator!=(),
operator+(),
operator-(),
operator+=(),
operator-=(),
operator<(),
operator>(),
operator<=(),
operator>=(),
operator*(),
operator/()
friends). Also, consider what should be
inline, and how you can have some functions use the
results of calculations of other functions which perform similar tasks
(but perhaps differ in member/global, and/or take different argument
lists). It is often easier to have the work done in one of the
functions, and have the remaining functions call the former.
Until further notice, there is no need to include the pointer field.
Have your main() supply the user with a menu (iterating
until s/he decides to quit), for at least the following