我希望像 2.d 這樣的輸入會因std :: stod而失敗,但是它將返回 2 。 ... try { exampleD = stod(exampleS); // this should fail } catch (exception &e) { // failure ...
確定! 回上一頁