#include<stdafx.h>
#include "iostream"
using namespace std;
template <class T>
struct Time
{
Time(const T& Year=0,const T& Month=0,const T& Day=0 )
{
year=Year,month=Month,day=Day;
}
friend Time* NewDate(T year,T month,T day)
{
return new Time(year,month,day);
}
T year;
T month;
T day;
};
int main()
{
Time<int> temp;
Time<int> *birthday=NewDate(1980,10,16);
cout<<birthday->year<<","<<birthday->month<<","<<birthday->day<<endl;
return 0;
}