cout > (stu.sname);
cout > (stu.score);
outfile.write((char *)&stu,sizeof(stu));
}
outfile.close();
return;
}
error C2065: 'outfile' : undeclared identifier
error C2228: left of '.write' must have class/struct/union type
error C2228: left of '.close' must have class/struct/union type