SHARE
TWEET

da

a guest Mar 19th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top