关于fscanf()读取的问题
fprintf(fp,"%10s,%10s,%10s,%10f,%10s,%10c,%10s",customsList[0].zhanghu,mima2,customsList[0].name,customsList[0].money,customsList[0].ID,customsList[0].sex,customsList[0].dress); 例如我用以上格式向磁盘文件输入一些字符窜和数字,接着我想用fscanf读取到程序中,我用了fscanf(fp,"%10s%10s%10s%10f%10s%10c%10s",customsList[j].zhanghu,mima2[j]/*我在另一个函数里面定义mima2[100][6]*/,customsList[j].name,customsList[j].money,customsList[j].ID,customsList[j].sex,customsList[j].dress);这样的格式,想像上面一样将字符串和数字分别对应的输进程序中,可是不行,到底是怎么回事?