tdate.cpp
资源名称:c.rar [点击查看]
上传用户:puke2000
上传日期:2022-07-25
资源大小:912k
文件大小:0k
源码类别:
C#编程
开发平台:
Visual C++
- //*********************
- //** tdate.cpp **
- //*********************
- #include <iostream.h>
- #include "tdate.h"
- void Tdate::Set(int m,int d,int y)
- {
- month=m; day=d; year=y;
- }
- int Tdate::IsLeapYear()
- {
- return (year%4==0&&year%100!=0)||(year%400==0);
- }
- void Tdate::Print()
- {
- cout <<month <<"/" <<day <<"/" <<year <<endl; }