Thanks. I intended to include that I have the total number of minutes 46 and seconds as 6 time used on a 80 minute CD. I know that 33 minutes and 54 seconds is the remainder I am trying to figure out how to put it in C++ form. And maybe I am making too much of this.
Convert all times to seconds.
Subtract one time from another to get remaining time.
Then convert remaining time back to minutes and seconds.
Overload the - operator for a Time class similar to one I previously wrote.
Time objects have a minutes member and a seconds member
Assume you want to subtract Time B from Time A and store result in Time C.
within body of - operator code declare a Time object called temp
if(B.seconds > A.seconds)
then A.seconds += 60;
and A.minutes -= 1;