please notice

i wanna input clock like this 04:56,but i don't know how to put colon here.
please help.
You can build it as a string. http://cplusplus.com/reference/clibrary/ctime/tm/

string formattedTime = string(time.tm_hour) + ":" + string(time.tm_min);

You would need to properly format the minutes if there is less then 10 minutes.
Topic archived. No new replies allowed.