convert stirng to int c++

C++
int thing = std::stoi(string);
Source

Also in C++: