Guest User

Untitled

a guest
Apr 25th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. #include <time.h>
  4.  
  5. using namespace std;
  6.  
  7. int main( int argc, char **argv )
  8.  
  9. {
  10. time_t t = atoi( argv[1] );
  11. struct tm *mytm = localtime( &t );
  12.  
  13.  
  14. for( uint i = 0; i < 500; i++ )
  15. {
  16. mytm->tm_mday++;
  17. time_t newt = mktime( mytm );
  18. cout << ctime( &newt );
  19. }
  20.  
  21. return 1;
  22. }
Add Comment
Please, Sign In to add comment