Hello everyone, I'm a complete noob in c++, I can't figure out how to do this. I need to do a countdown timer, I already have the whole code, but I need to ask for the time in the same line and I dunno how to do it.
I need that the program recognize the time in the same line in format hh:mm:ss.
I've been researching and I really dont know how to do it, someone told me that I need to change string into integers using atoi or something like that.
I really hope that someone could help me ASAP, is kinda urgent.
Wow, thanks both. The link is not useful for me, since I have the code for the clock already, but tyvm.
And JLBorges, thanks that was really easy, lol. I tried it and is working like a charm, but... Is there any other way to do it using strings? I supposed to use atoi in the code =P