Hello everyone,
I am trying to figure out how to OVERLOAD the comparision operator< to compare two time objects.
What are the 2 time objects?And how do I know where to begin with the overload?
Thanks for the help,
Janet
#ifndef TIME6_H
#define TIME6_H
class Time {
public:
Time( int = 0, int = 0, int = 0 );
// set functions
Time &setTime( int, int, int );
Time &setHour( int );
Time &setMinute( int );
Time &setSecond( int );
int getHour() const;
int getMinute() const;
int getSecond() const;
void printMilitary() const;
void printStandard() const;
private:
int hour;
int minute;
int second;
};
#endif