如果您希望 strtol 根據字首自動選擇基數,請輸入0。 因此,最簡單的用法是 long l = strtol(input.c_str(), NULL, 0); 如果您知道要獲取十進位制數字 ...
確定! 回上一頁