#include <iostream>
using namespace std;
class cdate
{
private:
int year;
int month;
int day;
public:
cdate()
{
cout<<"默认被调用"<<endl;
year = 2014;
month = 7;
day = 21;
}
cdate(int y,int m,int d)
{
cout<<"人工初始化"<<endl;
year = y;
month = m;
day = d;
}
void date_out()
{
cout<<"today is "<<year<<"."<<month<<"."<<day<<endl;
}
};
int main()
{
cdate A;
//cdate A(2001,7,8);
A.date_out();
return 0;
}