📌  相关文章
📜  在 C++ 代码示例中将字符串转换为 int

📅  最后修改于: 2022-03-11 14:44:50.125000             🧑  作者: Mango

代码示例6
// Both functions work identically though you'll need to use "#include " 
atoi( str.c_str() );
stoi( str );