string di int di cpp

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