How to let the second run (that mean always change the number of second) when run the program?
Code:time_t today;
time(&today);
struct tm*date=localtime(&today);
int d=date->tm_mday;
int m=date->tm_mon+1;
int y=date->tm_year+1900;
int h=date->tm_hour;
int t=date->tm_min;
int s=date->tm_sec;
cout<<"\nDate: "<<d<<"/"<<m<<"/"<<y;
cout<<"\t\tTime: "<<h<<":"<<t<<":"<<s;