Hello,
Just realized I have a c++ assignment due tommorow and that I need to download cygwin again (long story) to be able to make it.
That takes a long time, and I'm going to bed soon. While I have an idea for how to code this quickly, I need to make sure it is perfect. Can someone write up a batch of code in case my solution to the assignment doesn't work the first time through (i.e. so I can skip debugging etc)? Thanks.
Here is what I need to do:
"Write a C++ class called "Time" that represents quantities of time. Note that this is not a time of day, but an amount of time, e.g., 2 hours, 33 minutes. Your class should implement necessary class variables and functions, and in particular you must overload +, -, ==, !=, <<, and >>. << should output time in the HH:MM:SS format, and >> should take input in the same format.
Don't worry about representing increments of time larger than hours or smaller than seconds.
In your main(), you should take input from stdin (using >>) to create two Time objects. Then test to see if they are equal. If not, indicate which is larger."
Any help would be greatly appreciated...
People are difficult to govern because they have too much knowledge.
When there are more laws, there are more criminals.
- Lao Tzu