📅  最后修改于: 2022-03-11 14:44:49.280000             🧑  作者: Mango
代码示例1
// convert string to int number.
int number = stoi(str)
int number = stoi(str,nulptr,10);//base 10
int number = stoi(str.c_str());