Advertisement
Guest User

da

a guest
Mar 19th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. #include <iostream>
  2. #include <DateAndTime.h>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. DateAndTime a(12,12,31,23,59,59);
  8. a.print();
  9. a.tick();
  10. a.print();
  11. cout<<endl;
  12. DateAndTime b(12,12,31,23,59,58);
  13. b.print();
  14. b.tick();
  15. b.print();
  16. cout<<endl;
  17. DateAndTime c(20,2,28,23,59,59);
  18. c.print();
  19. c.tick();
  20. c.print();
  21. cout<<endl;
  22. DateAndTime d(20,2,29,23,59,59);
  23. d.print();
  24. d.tick();
  25. d.print();
  26. return 0;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement