关于文件读写的问题
#define Formatscanf "%10s,%10s,%10s,%6s,%20s,%18s,%20s\n"#define Format4 q->AccountNum,q->Name,q->Sex,q->Balance,q->ID,q->Address
q->AccountNum,q->Name,q->Sex,q->Balance,q->ID,q->Address(对应下面的内容)
001, /01, boy, male, 0,111111111111111111aotou, aotou
然后---if(fprintf(fp,Formatscanf,Data)!=EOF),接着再生成的txt文件中显示成这样:
001, /01, boy, male, 0,111111111111111111aotou, aotou
正常来说,应该是:
001, /01, boy, male, 0,111111111111111111, aotou
才对,求解!
[ 本帖最后由 bok002121 于 2013-5-23 07:03 编辑 ]