Hello,
I am learning now the C++ language and I have some problems on reading files.
I have to read a full-format time (hh:mm:ss) and what i want is to store on three int variables the hour, minutes and seconds.
And the output: Hours: 2 Minutes: 0 Seconds: 32625
The correct result should have been: Hours: 02, Minutes: 21, Seconds: 15
So what i need is to skip the ":" and save the numbers in integers vars.
Thank you in advance.