我和一个关于 std::stoi 的垮台的人进行了一次可爱的交谈。 说穿了,它内部使用 std::strtol ,并抛出,如果报告错误。 据他们说,虽然 std::strtol 不应该为 "abcxyz" ...
確定! 回上一頁