帮忙查错,谢谢!
#include <iostream.h>class Date
{
public:
int month,day,year;
void display()
{
char *mon[] = {
"一月","二月","三月","四月",
"五月","六月","七月","八月",
"九月","十月","十一月","十二月"
};
cout<<mon[Date.month]<<" "<<Date.day<<","<<Date.year;
}
};
void main()
{
Date birthday = {1,16,1984};
birthday.display();
}