- #1
auk411
- 57
- 0
Homework Statement
I need to know how, in C++, to extract 3 integers and 2 chars. In other words, I need to extract from the keyboard this data: HH:MM:SS, where the HH, MM, and SS are integers (standing for hours, minutes, and seconds). The two semicolons are chars. There are NO spaces, returns, other whitespaces. So when the user enters the appropriate numbers into HH:MM:SS how do I extract the information keeping the hours as the hours, the chars as the chars, minutes as the minutes, and seconds as the seconds.
Homework Equations
cin can't be the answer because it delimits using whitespace, and there is no whitespace. I also haven't been taught how to convert strings to ints. So I doubt that is the way the prof
wants us to go.