展开全部
#ifndef HEADER_DATE
#define HEADER_DATE
#include
#include
#include
using namespace std;
class date{
int year,month,day;
void init();
public:
static const int tians[];
int age();
int getyear()
int getmonth()
int getday()
date();
date(const string& s);
date(const date& d)
date(int y=2000,int m=1,int d=1);
bool isleapyear()const;
friend ostream& operator<
double xg();
double xiangge(date b);
friend date operator+=(date& a,int n);
friend bool operator==(date& a,date & b);
void display();
string huanyuan();
};
#endif
#include"date.h"
//日期的计算
const int date::tians[]=;
const long int yea