I\'m trying to convert a string to a number. For that, I found the following way:
#include #include template
You haven't supplied a template argument. Note that in C++11, you can use std::stoi:
std::stoi
std::string a = "254"; int b = std::stoi(a);