Advertisement
Guest User

Untitled

a guest
May 27th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.35 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <time.h>
  3. #include <iostream>
  4. #include <windows.h>
  5. using namespace std;
  6.  
  7. int main ()
  8. {
  9.   restart:
  10.   time_t rawtime;
  11.   struct tm * timeinfo;
  12.  
  13.   time ( &rawtime );
  14.   timeinfo = localtime ( &rawtime );
  15.   printf ( "Current local time and date: %s", asctime (timeinfo) );
  16.   Sleep(1000);
  17.   system("cls");
  18. goto restart;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement