-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdata.h
47 lines (41 loc) · 1.07 KB
/
data.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#ifndef DATA_H
#define DATA_H
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
class Data
{
string dateWithDashesAsString;
int id;
int year;
int month;
int day;
int dateWithoutDasesAsInt;
public:
Data(string dateWithDashesAsString="",int id=0, int year=0, int month=0, int day=0,int dateWithoutDasesAsInt=0)
{
this->dateWithDashesAsString = dateWithDashesAsString;
this->id = id;
this->year = year;
this->month = month;
this->day = day;
this->dateWithoutDasesAsInt = dateWithoutDasesAsInt;
}
//bool operator<(const Data &other);
//setery
void setDateWithDashesAsString(string newDateWithDashesAsString);
void setID(int newID);
void setYear(int newYear);
void setMonth(int newMonth);
void setDay(int newDay);
void setDateWithoutDasesAsInt(int NewDateWithoutDasesAsInt);
//getery
string getDateWithDashesAsString();
int getID();
int getYear();
int getMonth();
int getDay();
int getDateWithoutDasesAsInt();
};
#endif