这道C++题目应该怎么解?

2024-12-04 04:13:25
推荐回答(1个)
回答1:

class Date{
private:
int year;
int month;
int day;
public:
Date() {year=0;month=1;day=1;}
void setdate(int y,int m,int d) {year=y;month=m;day=d;}
void show() {cout<};