Hello everyone!!
I'm new in C++ and I would appreciate any idea how to convert a string of digits into integer it represents. For ex. "15" to 15.
Zara
One possible problem with std::atoi is when it returns 0 you don't know if it failed or not.
that same issue applies to the template function as supplied by codekiddy