Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <time.h>
- using namespace std;
- int main( int argc, char **argv )
- {
- time_t t = atoi( argv[1] );
- struct tm *mytm = localtime( &t );
- for( uint i = 0; i < 500; i++ )
- {
- mytm->tm_mday++;
- time_t newt = mktime( mytm );
- cout << ctime( &newt );
- }
- return 1;
- }
Add Comment
Please, Sign In to add comment