#include <iostream>
#include <string>
using namespace std;
//声明类
class Date{
//共有成员函数
public:
void ShowDate(int y,int m,int d){
Year=y;
Month=m;
Day=d;
cout<<d<<'/'<<m<<'/'<<y<<endl;
}
//私有属性
private:
int Year,Month,Day;
};
int main() {
Date DateOne; //创建对象
int y,m,d;
cin>>y>>m>>d;
DateOne.ShowDate(y,m,d); //给对象的方法赋值
return 0;
}
// 64 位输出请用 printf("%lld")



京公网安备 11010502036488号