欢迎来到天天文库
浏览记录
ID:13104712
大小:56.00 KB
页数:30页
时间:2018-07-20
《c++图书管理系统-数据结构课程设计》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、c++图书管理系统-数据结构课程设计c++图书管理系统-数据结构课程设计
2、数据结构课程设计#include#include#includestaticintn=0;intcomp(char*,char*);classstudent{public:voidgetdata(){tag='#';cout<<"(姓名身份证号码班级成绩):";cin>>name>>number>>Class>>score;}chargettag(){returntag;}voiddisp(){if(tag=='#')cout<3、tiosflags(ios::left)<>name>>number>>zhichen>>x4、ueyuan;}chargettag(){returntag;}voiddisp(){if(tag=='#')cout<5、blic:voidgetdata(){tag='#';cout<<"(姓名身份证号码班级成绩职称学院):";cin>>name>>number>>Class>>score>>zhichen>>xueyuan;}chargettag(){returntag;}voiddisp(){if(tag=='#')cout<6、dl;}char*getname(){returnname;}private:chartag;charname[12];charnumber[18];charClass[20];doublescore;charzhichen[20];charxueyuan[30];};voidfunc1(){ofstreamoutput("MyFrd.dat");students;cout<<"输入数据"<>n;for(inti=0;i7、((char*)&s,sizeof(s));};output.close();}voidfunc2(){ifstreaminput("MyFrd.dat");students;cout<<"输出数据"<8、s));};input.close();}voidfunc3(){charsname[10];ifstreamfile("MyFrd.dat");studentone;file.seekg(0);cout<<"输入要查询的姓名(可只输入姓氏):";cin>>sname;cout<<"输出查询结果:"<
3、tiosflags(ios::left)<>name>>number>>zhichen>>x
4、ueyuan;}chargettag(){returntag;}voiddisp(){if(tag=='#')cout<5、blic:voidgetdata(){tag='#';cout<<"(姓名身份证号码班级成绩职称学院):";cin>>name>>number>>Class>>score>>zhichen>>xueyuan;}chargettag(){returntag;}voiddisp(){if(tag=='#')cout<6、dl;}char*getname(){returnname;}private:chartag;charname[12];charnumber[18];charClass[20];doublescore;charzhichen[20];charxueyuan[30];};voidfunc1(){ofstreamoutput("MyFrd.dat");students;cout<<"输入数据"<>n;for(inti=0;i7、((char*)&s,sizeof(s));};output.close();}voidfunc2(){ifstreaminput("MyFrd.dat");students;cout<<"输出数据"<8、s));};input.close();}voidfunc3(){charsname[10];ifstreamfile("MyFrd.dat");studentone;file.seekg(0);cout<<"输入要查询的姓名(可只输入姓氏):";cin>>sname;cout<<"输出查询结果:"<
5、blic:voidgetdata(){tag='#';cout<<"(姓名身份证号码班级成绩职称学院):";cin>>name>>number>>Class>>score>>zhichen>>xueyuan;}chargettag(){returntag;}voiddisp(){if(tag=='#')cout<6、dl;}char*getname(){returnname;}private:chartag;charname[12];charnumber[18];charClass[20];doublescore;charzhichen[20];charxueyuan[30];};voidfunc1(){ofstreamoutput("MyFrd.dat");students;cout<<"输入数据"<>n;for(inti=0;i7、((char*)&s,sizeof(s));};output.close();}voidfunc2(){ifstreaminput("MyFrd.dat");students;cout<<"输出数据"<8、s));};input.close();}voidfunc3(){charsname[10];ifstreamfile("MyFrd.dat");studentone;file.seekg(0);cout<<"输入要查询的姓名(可只输入姓氏):";cin>>sname;cout<<"输出查询结果:"<
6、dl;}char*getname(){returnname;}private:chartag;charname[12];charnumber[18];charClass[20];doublescore;charzhichen[20];charxueyuan[30];};voidfunc1(){ofstreamoutput("MyFrd.dat");students;cout<<"输入数据"<>n;for(inti=0;i7、((char*)&s,sizeof(s));};output.close();}voidfunc2(){ifstreaminput("MyFrd.dat");students;cout<<"输出数据"<8、s));};input.close();}voidfunc3(){charsname[10];ifstreamfile("MyFrd.dat");studentone;file.seekg(0);cout<<"输入要查询的姓名(可只输入姓氏):";cin>>sname;cout<<"输出查询结果:"<
7、((char*)&s,sizeof(s));};output.close();}voidfunc2(){ifstreaminput("MyFrd.dat");students;cout<<"输出数据"<8、s));};input.close();}voidfunc3(){charsname[10];ifstreamfile("MyFrd.dat");studentone;file.seekg(0);cout<<"输入要查询的姓名(可只输入姓氏):";cin>>sname;cout<<"输出查询结果:"<
8、s));};input.close();}voidfunc3(){charsname[10];ifstreamfile("MyFrd.dat");studentone;file.seekg(0);cout<<"输入要查询的姓名(可只输入姓氏):";cin>>sname;cout<<"输出查询结果:"<
此文档下载收益归作者所有