Time.cpp programming

Time

Time was intended time, 24 hours a day, everyone knows that, but you know how to read the current system time and with EXE modify it?
Expected by many ignorant people suddenly forced o ((⊙﹏⊙)) o.
For loop is completely unrealistic, it is necessary to use the header file:

#include<stdilb.h>

In fact, the code is very simple, cmd are used (in the run box, enter CMD), and he almost, just one line of the core code, that is:

System("time");

Note sure to add #include <stdilb.h>, otherwise the computer blue screen blame me! (Si ω Si)
complete code is as follows:

#include<stdlib.h> 
#include<iostream> 
using namespace std; 
int main() 
{ 
	while(1){
		system("time"); 
	}
} 

After a time can be modified, club da ~

Published 14 original articles · won praise 8 · views 1165

Guess you like

Origin blog.csdn.net/Horse_Lake/article/details/103864654