现在遇到个问题 输出到文本的时候前几行和后面总部对齐,我的输出程序片段如下:
FILE
*fp1;
fp1=fopen( "D:\\lunwen\\xlh\\222.dat", "wt ");
for
(i=0; i <360; i++)
{
for
(j=0; j <2; j++)
{
fprintf( fp1,"%.13f\t",a[i][j]);
}
fprintf(fp1, "\n");
}
fclose(fp1);
}
输出到文本后结果如下:
0.0000000000000 68.4136027438200
1.0000000000000 68.2861401969188
2.0000000000000 68.1510788335519
3.0000000000000 68.0089670126013
4.0000000000000 67.8609508526124
5.0000000000000 67.7069556807283
6.0000000000000 67.5439759981412
7.0000000000000 67.3722506691402
8.0000000000000 67.1937830346276
9.0000000000000 67.0078837183469
10.0000000000000
66.8161653957191
11.0000000000000
66.6141492177976
12.0000000000000
66.4039372470060
13.0000000000000
66.1889907586023
14.0000000000000
65.9641585182284
15.0000000000000
65.7300854396303
。。。。。。。。。。。。
后面都正常了
能帮我看看问题出在哪么?谢谢