標準的方法是用strtod() 或strtol(). 第二個參數會指向無法轉換的字元, 如指向的字元 為'\0', 那字串裡的值就是數字. #include #include #include ...
www.google.com.tw