我在使用 C 对齐文件时遇到问题
程序行:
fprintf(fpscrip,"\n %ld , %ld , %ld , %ld , %ld , %ld , %ld , %ld , %ld , %ld , %ld",scripCode,tradeVolume,LTQ,LTR,OpenRate,CloseRate,HighRate,LowRate,TotBuyQty,TotSellQty,LowerCircuitLimit,UpperCircuitLimit)
文件 o/p
524667 , 7 , 1 , 34010 , 34500 , 34825 , 34500 , 34010 , 728 , 698 , 27865
533573 , 83625 , 50 , 14260 , 13655 , 13595 , 14440 , 13575 , 9202 , 15989 , 10880
结果应该像这样打印:-
524667 , 7 , 1 ,...
533573 ,83625,50,...