chaîne dans int dans cpp

string str1 = "3434";
int num = stoi(str1);
Coder OM