-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstatus.cpp
More file actions
45 lines (37 loc) · 763 Bytes
/
Copy pathstatus.cpp
File metadata and controls
45 lines (37 loc) · 763 Bytes
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
34
35
36
37
38
39
40
41
42
43
44
#define _CRT_SECURE_NO_WARNINGS
#include "status.h"
#include <string.h>
#include <iostream>
#include <string>
using namespace std;
Status::Status(string str, const Date date, const Time time) : _statusDate(date), _statusTime(time)
{
_content = str;
}
string Status:: getContent() const
{
return _content;
}
const Date Status::getDate() const
{
return _statusDate;
}
const Time Status::getTime() const
{
return _statusTime;
}
void Status:: showStatus() const
{
_statusDate.showDate();
cout << "\n";
_statusTime.showHour();
cout << "\n"<< _content;
}
bool Status:: operator== (const Status& other) const
{
return other._content == this->_content;
}
bool Status:: operator!= (const Status& other) const
{
return other._content != this->_content;
}