#include<iostream> using namespace std; class date { private: int d=0; int m=0; int y=0; public: void print(int d,int m, int y) { cout <<d<<"/"<<m<<"/"<<y; } }; int main() { date date1; int d,m,y; cin >>y>>m>>d; date1.print(d,m,y); return 0; }
#include<iostream> using namespace std; class date { private: int d=0; int m=0; int y=0; public: void print(int d,int m, int y) { cout <<d<<"/"<<m<<"/"<<y; } }; int main() { date date1; int d,m,y; cin >>y>>m>>d; date1.print(d,m,y); return 0; }