Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <time.h>
- #include <iostream>
- #include <windows.h>
- using namespace std;
- int main ()
- {
- restart:
- time_t rawtime;
- struct tm * timeinfo;
- time ( &rawtime );
- timeinfo = localtime ( &rawtime );
- printf ( "Current local time and date: %s", asctime (timeinfo) );
- Sleep(1000);
- system("cls");
- goto restart;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement