建檔疑問 |
尚未結案
|
1111ricky
一般會員 發表:2 回覆:3 積分:1 註冊:2003-09-13 發送簡訊給我 |
|
1111ricky
一般會員 發表:2 回覆:3 積分:1 註冊:2003-09-13 發送簡訊給我 |
|
gemi0305
版主 發表:81 回覆:564 積分:629 註冊:2003-05-11 發送簡訊給我 |
These modifiers determine how printf functions interpret the next input argument, arg[f]. Prefix Format specifier Type specified F p s A far pointer N n A near pointer h d i o u x X A short int l d i o u x X A long int l e E f g G A double L e E f g G A long double L d i o u x X An __int64 h c C A single-byte character l c C A Wide character h s S A single-byte character string l s S A Wide character string These modifiers affect how all the printf functions interpret the data type of the corresponding input argument arg. Both F and N reinterpret the input variable arg. Normally, the arg for a %p, %s, or %n conversion is a pointer of the default size for the memory model. h, l, and L override the default size of the numeric data input arguments. Neither h nor l affects pointer (p,n) types.這是BCB online的說明,另外 你的資料超出有效範圍了,會有部份資料無法存入, 可能要找個大一點的格式, 照上面的說明,可以試試: fprintf(fp,"%Lf\n",a); 或 fprintf(fp,"%Le\n",a); 這個會比較好 國泰平安 發表人 - |
1111ricky
一般會員 發表:2 回覆:3 積分:1 註冊:2003-09-13 發送簡訊給我 |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |