/test.csv","w") ; // 写
for (i=0 ; i<4 ; i++)
fprintf(fp,"%c,%d,%d\n", chy[i], data[i], d2) ;
fclose.../test.csv","w") ; // 写
for (i=0 ; i<4 ; i++)
fprintf(fp,"%c,%d,%d\n", chy[i], data[i], 5) ;
fclose...d1); // 9
cout << d1 << endl;
cout << "ftell(fp) = " << ftell(fp) << endl<< endl;
fscanf(fp, "%c"...) << endl<< endl;
fseek(fp, -4L, 1);
cout << "ftell(fp) = " << ftell(fp) << endl;
fscanf(fp, "%c"...fp);
}
int main()
{
writeExcel() ;
system("pause");
return 0;
}
结果分析可知
首先数据是:%c