用%g 格式把float, double 轉字串,檢查字串裡有沒有小數點,有就不是,無就是整數。 例如:double y=23.000;. int i,l,flag;. sprintf(str,"%g", ...
確定! 回上一頁