how to covert string to 2 int in c++ code example Example: convert stirng to int c++ int thing = std::stoi(string);