f1303.cpp
资源名称:c.rar [点击查看]
上传用户:puke2000
上传日期:2022-07-25
资源大小:912k
文件大小:0k
源码类别:
C#编程
开发平台:
Visual C++
- //=====================================
- // f1303.cpp
- // Using IDate Interface
- //=====================================
- #include"idate.h"
- #include<iostream>
- //-------------------------------------
- void fn(IDate& d1, IDate& d2){
- std::cout<<d2 - d1<<"n";
- std::cout<<++d1;
- }//------------------------------------
- int main(){
- IDate& rd1 = createDate(2005,1,6);
- IDate& rd2 = createDate(2005,2,3);
- fn(rd1, rd2);
- delete &rd1;
- delete &rd2;
- }//====================================