Convert from string to int.
Hi folks,
I know this is something that is asked a lot, but I've been reading lots about it and am still none the wiser.
I am reading from file - most values are strings but the odd one is an int. I'm happy reading the int's as strings but I need to convert them into int's so that I can work with them.
At the moment, I have a variable of string type called Length that needs to be an int - thats all!
I've tried many different methods but am failing miserable with all of them!.
I notice a lot use the #include <sstream> however, when I try to include it I get "CdPlayer.h:6: sstream: No such file or directory"
I've also tried the atoil functions without joy.
Thank you!