how to make string to a integer c++ code example Example: convert stirng to int c++ int thing = std::stoi(string);