Advertisement
Guest User

Untitled

a guest
Dec 19th, 2014
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.27 KB | None | 0 0
  1. #include <Windows.h>
  2.  
  3. #include <ctime>
  4.  
  5.  
  6. int main()
  7. {
  8.     FreeConsole();
  9.  
  10.     time_t t1, t2;
  11.  
  12.     time( &t1 );
  13.  
  14.     while ( true )
  15.     {
  16.         time( &t2 );
  17.  
  18.         if ( t2 - t1 >= 3600 )
  19.         {
  20.             MessageBox( NULL, "WALK AROUND", "", MB_OK );
  21.  
  22.             time( &t1 );
  23.         }
  24.     }
  25.  
  26.     return 0;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement