You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
#ifndef DATE_H
|
|
|
|
|
#define DATE_H
|
|
|
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
|
|
class Date
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
Date(int year = 0, int month = 0, int day = 0);//<2F><><EFBFBD>캯<EFBFBD><ECBAAF>
|
|
|
|
|
string ShowDate();//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
int getYear() const { return year; }//<2F>ⲿ<EFBFBD><E2B2BF><EFBFBD>ʽӿڣ<D3BF><DAA3><EFBFBD>ȡ<EFBFBD><C8A1>
|
|
|
|
|
int getMonth() const { return month; }//<2F>ⲿ<EFBFBD><E2B2BF><EFBFBD>ʽӿڣ<D3BF><DAA3><EFBFBD>ȡ<EFBFBD><C8A1>
|
|
|
|
|
int getDay() const { return day; }//<2F>ⲿ<EFBFBD><E2B2BF><EFBFBD>ʽӿڣ<D3BF><DAA3><EFBFBD>ȡ<EFBFBD><C8A1>
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
int year;
|
|
|
|
|
int month;
|
|
|
|
|
int day;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // DATE_H
|