#include <iostream> #include <iomanip> using namespace std; class date { int year,month,day; public:void set(int y,int m,int d) { year = y;month=m; day=d; } bool isLeapYear() { return (year%4==0 && year%100!=0)||(year%400==4); } public:void print() { cout<<setfill('0'); cout<<setw(4)<<year<<'-'<<setw(2)<<month<<'-'<<setw(2)<<day<<'/n'; cout<<setfill('0'); } }; int main() { date d; d.set(2000,12,1); d.print(); cout<<"OK"; return 0; }