converting string to int

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.
thank you very much. that is exactly what i needed
Topic archived. No new replies allowed.