I need to check if the string has wrong/junk values. How can I do it?
My string should have only integer values in them.
std::string s1="1234" //This is a valid value
std::string s2="123a" //This or any combination (including control characters) is not valid
I am using C++ (GNU compiler) and Linux.