我有一個(gè)std::string,可以是字符串,也可以是值(例如0)。將其轉(zhuǎn)換std::string為int具有失敗能力的最佳或最簡單方法是什么?我想要C#的C ++版本Int32.TryParse。 查看完整描述