stdlib.h 的函數strtol() 接受字串當作參數,將字串中的數字轉換為long 型態的整數, ... char *endPtr = test; long sum = 0; while (*test) { sum += strtol(test, ...
確定! 回上一頁