<<endl;?cout<<"编号姓名职位年龄出生日期电话号码住址电子邮件地址"<<endl;?for(i=0;i<l-1;i++)?{ infile.read((char*)&tea[i],sizeof(tea[i]));?cout<<""<<tea[i].num<<""<<tea[i].name<<""<<tea[i].call<<""<<tea[i].age<<""<<tea[i].birthday?<<""<<tea[i].phone<<""<<tea[i].addr<<""<<tea[i].eaddr<<endl;?}ofstreamoutfile("teacher1.dat",ios::out|ios::binary);if(!outfile)?{ cerr<<"openerror!"<<endl; abort();?}for(j=0;j<l-1;j++)?outfile.write((char*)&tea[j],sizeof(tea[j]));outfile.close();}}voidteacher::zhao(){?inti,l,m=0;intn;?l=length();cout<<l<<endl;ifstreaminfile("teacher1.dat",ios::in|ios::binary);if(!infile)?{?cerr<<"openerror!"<<endl;?abort();?}for(i=0;i<l;i++)?{ infile.read((char*)&tea[i],sizeof(tea[i]));?}cout<<"请选择按(1.教师编号;2.教师姓名)查找\n";?for(;;)?{intx;cin>>x;if(x==1)?{cout<<"请输入要查找的编号:";cin>>n;cout<<endl;for(i=0;i<l;i++)?{