int j;
for(j=0;j<3;j++)
stu[j].set();
ifstream in("D:\\test");
if(!in)
{
}
cout<<"cannot open file";
return 1;
xtm tp[3];
int k;
for(k=0;k<3;k++)
in>>tp[k].bh>>tp[k].tm>>tp[k].ru>>tp[k].sj;
in.close();
int h,w,p;
ofstream out2("D:\\text");
if(!out2)
{
}
cout<<"cannot open file";
return 1;
for(w=0;w<3;w++)
{ cout<<"输入学号:";
cin>>h;
cout<<"输入题号:";
cin>>p;
cout<<" 学 号 :"<