Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <DateAndTime.h>
- using namespace std;
- int main()
- {
- DateAndTime a(12,12,31,23,59,59);
- a.print();
- a.tick();
- a.print();
- cout<<endl;
- DateAndTime b(12,12,31,23,59,58);
- b.print();
- b.tick();
- b.print();
- cout<<endl;
- DateAndTime c(20,2,28,23,59,59);
- c.print();
- c.tick();
- c.print();
- cout<<endl;
- DateAndTime d(20,2,29,23,59,59);
- d.print();
- d.tick();
- d.print();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement