convert strign to int in cpp code example Example: convert stirng to int c++ int thing = std::stoi(string);