1//headers
2#ifndef TOOLS_hpp
3#define TOOLS_hpp
4#include<vector>
5#include<iostream>
6#include<fstream>
7#include<string>
8using std::ifstream;
9using std::cout;
10using std::cin;
11using std::endl;
12using std::cerr;
13using std::vector;
14using std::string;
15// functions prototypes
16inline vector<int> merge(const vector<int>&a,const vector<int>& b);//merge function prototype with Formal Parameters
17std::vector<int> sort(size_t start, size_t length, const std::vector<int>& vec);//sort function prototype with formal parameters
18#endif
19
1class Date
2{
3private:
4 int m_year;
5 int m_month;
6 int m_day;
7
8public:
9 Date(int year, int month, int day)
10 {
11 setDate(year, month, day);
12 }
13
14 void setDate(int year, int month, int day)
15 {
16 m_year = year;
17 m_month = month;
18 m_day = day;
19 }
20
21 int getYear() { return m_year; }
22 int getMonth() { return m_month; }
23 int getDay() { return m_day; }
24};
25