#include "stdio.h"
#include
using namespace std;
class Cdate
{
private:
int m_year,m_month,m_day;
public :
Cdate(int y,int m,int d)
{
m_year =y;
m_month=m;
m_day =d;
}
void settime ();
int getadd () ;
void showtime();
};
void Cdate::settime()
{
std::cin>>m_year>>m_month>>m_day;
}
int Cdate::getadd()
{
}
void Cdate::showtime()
{
std::cout<
int main(void)
{
Cdate date(0,0,0);//要有对象才能调类里的非静态函数
std::cout<<"请输入年、月、日:";
date.settime();
date.getadd();
date.showtime();
}