全文预览

公司的管理系统 C++地面向对象程序设计实例

上传者:似水流年 |  格式:doc  |  页数:12 |  大小:56KB

文档介绍
"<<endl;break; default:cout<<"没有此选项,请重选."<<endl;break; }?}while(choice!=0);}voidTechnologist_mana::total(){?cout<<"技术人员总人数为:"<<top<<"人"<<endl;}voidTechnologist_mana::save(){ofstreamout("h:\\技术人员管理.txt",ios::out|ios::binary);?if(!out)?{ cerr<<"打开失败!"<<endl; return;?}?for(inti=0;i<top;i++) out.write((char*)&t[i],sizeof(t[i]));?cout<<"保存成功!"<<endl;?cout<<endl;?out.close();}voidTechnologist_mana::read(){?ifstreamin("h:\\技术人员管理.txt",ios::in|ios::binary);?if(!in)?{ cerr<<"打开失败!"<<endl; return;?}?inti=0;while(in.read((char*)&t[i],sizeof(t[i])))?{ i++;?}?cout<<"读取成功!"<<endl;?in.close();}voidTechnologistMenu(){ Technologist_manatee;?intchoice;?while(choice!=0)?{ cout<<"ooooo技术人员ooooo"<<endl; cout<<"ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo"<<endl; cout<<"||"<<endl;

收藏

分享

举报
下载此文档