converting string to int

Jun 29, 2011 at 2:20pm
I am a student learning c++. I am trying to write a program where a user enters two times and the program returns the time that has elapsed between them. I have the users entering the time as a string because of the colon seperating hours from minutes. In order to do the processing part I need to turn the strings into integer values. Can anyone give me a hand? Keep in mind this is an intro course so I shouldn't be using to complex of functions.
Jun 29, 2011 at 2:45pm
Jun 30, 2011 at 4:47pm
thank you very much. that is exactly what i needed
Topic archived. No new replies allowed.