ndl;cin>>nam; for(j=0;j<100;j++) { ifstream infile(" 图画.txt",ios::in);infile>>h[j].num>>h[j].name; if(h[j].num!=num1) n++;break; if(h[j].num==num1&&strcmp(h[j].name,nam)!=0) break; } for(j=0;j<100;j++) { ifstream infile(" 图书.txt",ios::in);infile>>t[j].num;infile.close(); if(t[j].num==num1) break; else n++;break; } for(j=0;j<100;j++) { ifstream infile(" 视频光盘.txt",ios::in);infile>>s[j].num;infile.close(); if(s[j].num==num1) break; else n++;break; } for(j=0;j<100;j++) {ifstream infile(" 图画.txt",ios::in);infile>>h[j].num; if(h[j].num!=0) m=3; else m=2; infile.close();} if(n==m) { outfile<<h[i].x<<" "<<h[i].num<<" "<<h[i].name<<" "<<h[i].biaoti<<" "<<h[i].pingji<<" "<<h[i].guoji<<" "<<h[i].chang<<" "<<h[i].kuan<<endl;} else cout<<" 数据添加重复。"<<endl; } outfile.close();} void xinxitianjia() // 信息添加