New course! Every coder should learn Generative AI!
Try a free lesson+ 1
string to int
How can I turn an string variable into int?
1 Answer
+ 5
Assuming you're using a std::string :
std::string str("123");
auto i = std::stoi(str);
How can I turn an string variable into int?