123456789
#include <iostream> using namespace std; int main() { string str = "35"; int num = atoi(str.c_str()); }