CPP
cpp
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
#include <iostream>
#include <sstream>
#include <array>
#include <stdlib.h>
using namespace std;
//enter start hour
//followed by an enter and start minute
//then reapeat the steps again for end time
//example:
/*
8
0
12
5
start time : 08:00
end time : 12:05
*/
class hand
{
public:
//all of these operator overwriten methods were already fully initialised in the derived classes
virtual void operator++() = 0;
virtual bool operator>(hand& h)= 0;
virtual bool operator<(hand& h)= 0;
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run