-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTime.h
33 lines (30 loc) · 803 Bytes
/
Time.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#pragma once
#include<iostream>
class Time {
size_t seconds;
size_t minutes;
size_t hours;
bool busy;
bool changeDay;
public:
Time();
bool isValidTime()const;
bool isTBusy()const;
void cpyOther(const Time& other);
void createTime(size_t seconds, size_t minutes, size_t hours, bool busy);
size_t getSeconds()const;
size_t getMinutes()const;
size_t getHours()const;
void setIfBusy(bool is);
void setSeconds(size_t seconds);
void setMinutes(size_t minutes);
void setHours(size_t hours);
void operator =(const Time& other);
int compare(const Time&time)const;
void checkTime();
Time& difference(const Time& other)const;
Time& sum(const Time& other)const;
void timePasses();
void print()const;
void timelater(size_t sec,size_t min,size_t hour);
};