I\'m having trouble converting a string into an integer. I googled it but all I can find is how to convert an int into a string. Does anyone know how to do it the other way
Yet another way: if you are working with a C string, e.g. const char *, C native atoi() is more convenient.
atoi()