#include "Tdate.h"
#include <iostream.h>
void Tdate::SetDate(int y,int m,int d)
{
year=y;
month=m;
day=d;
}
int Tdate::IsLeapYear()
{
return (year%4==0 && year%100!=0)||(year%400==0);
}
void Tdate::print()
{
cout<<year<<"."<<month<<"."<<day<<endl;
}