Alright so my question is, how can I make a program that basically executes the rest of the program at for example 12pm. For example some non realistic code:
#include
#include
int main()
{
Get_time() //Gets system time
if(time() == 254pm ){ //if time is 2:54pm
printf("Time: 2:54pm\n");
}
else printf("Program can not execute at this time.\n");
return 0;
}
Does anyone know how I can do something similar?
以上就是Program execute at a certain time的详细内容,更多请关注web前端其它相关文章!