#include <iostream.h> class Birthday { private: int day; int month; int year; public: Birthday(int y,int z, int k) { day = y; month = z; year = k;} ~Birthday(){}
friend changeday(Birthday t1);
int GetY(){ return day;} int GetZ(){ return month;} int GetK(){ return year;} }; changeday(Birthday t1) { t1.day = 15; t1.month = 1; t1.year = 1984; }
void main() { Birthday t2; changeday(t2); cout << t2.GetK()<< t2.GetZ() << t2.GetY() << endl; } 给我看看哪能时错了呀???????????????