add solution of lab01
This commit is contained in:
20
labs/classes/time.h
Normal file
20
labs/classes/time.h
Normal file
@@ -0,0 +1,20 @@
|
||||
class Time {
|
||||
private:
|
||||
int hour;
|
||||
int minute;
|
||||
int second;
|
||||
|
||||
public:
|
||||
Time();
|
||||
Time(int h, int m, int s);
|
||||
|
||||
int getHour() const;
|
||||
int getMinute() const;
|
||||
int getSecond() const;
|
||||
|
||||
void setHour(int h);
|
||||
void setMinute(int m);
|
||||
void setSecond(int s);
|
||||
|
||||
void PrintAMPM() const;
|
||||
};
|
||||
Reference in New Issue
Block a user