#include <iostream>#include <string>int main(){ std::string test = "45"; int myint = stoi(test); std::cout << myint << '\n';}我在運行MinGW GCC 4.7.2的計算機上嘗試了此代碼。它給了我這個錯誤:我在做什么錯,我是從cppreference那里得到的。其完全相同的代碼。并描述了它從一個不同的錯誤在這里。
- 3 回答
- 0 關注
- 562 瀏覽
添加回答
舉報
0/150
提交
取消