xxxxxxxxxx
#include<ctime>
//library for live time
rep: //for the loop until the certain time
time_t ttime = time(0); //to assign time
tm *s = localtime(&ttime); //to assign local time
if((s->tm_hour==22)&&(s->tm_min==23)&&(s->tm_sec==0)) //time u want in hour min sec
// the code u want to run in the certain time
else goto rep; //for the loop