#include<iostream>#include<cstring>usingnamespacestd;/*题目1:电话号码管理软件管理本班级同学的电话号码,支持添加、删除、修改、查询功能。///(1)整体查询有两种显示方式:一是按加入序号次序显示,另一个是按姓名排序;(2)个别查询支持模糊查询,例如:输入"张",则所有匹配的姓名中含"张"的均显示。*/classstudent{public:charname[100][100];//姓,英文charming[100][100];//名,英文/////////////////////////intban激[100];//班级intnumber[100];//学号charphone[100][100];//电话号码charsex[100][100];//性别student();//构造函数将数据初始化voidadd(char*a,char*cc,intb,intc,char*d,char*e,intn);//添加记录voiddel(intk,intn);//删除记录voidchange(intk,char*a)//;//修改号码//voidstudent::change(intk,char*a)//gai{strcpy(phone[k],a);}//voidprint(intn);voidshow(intk);//输出某一个人的信息voidXING(char*zz,intn);//按姓搜索voidMING(char*gg,intn);//按名搜索intsearch(char*a,char*b,intn);//查找按姓名voidsortt(intn);//按名字的串的从小到大排序voiddisplay(intg);//按名字的串的从小到大输出voidsorttt(intn);//按学号从小到大排序"};voidstudent::XING(char*zz,intn){intkk=0;cout<<"学号\t\t"<<"姓名\t\t"<<"性别\t\t"<<"班级\t\t"<<"电话号码"<<endl;for(inti=1;i<=n;i++)if(strcmp(name[i],zz)==0){cout<<number[i]<<"\t\t"<<name[i]<<""<<ming[i]<<"\t\t"<<sex[i]<<"\t\t"<<ban激[i]<<"\t\t"<<phone[i]<<endl;++kk;}if(kk==0)cout<<"对不起,系统中没有您要查找的人的信息"<<endl;}voidstudent::MING(char*gg,intn){intkk=0;cout<<"学号\t\t"<<"姓名\t\t"<<"性别\t\t"<<"班级\t\t"<<"电话号码"<<endl;for(inti=1;i<=n;i++)if(strcmp(ming[i],gg)==0){cout<<number[i]<<"\t\t"<<name[i]<<""<<ming[i]<<"\t\t"<<sex[i]<<"\t\t"<<ban激[i]<<"\t\t"<<phone[i]<<endl;++kk;}if(kk==0)cout<<"对不起,系统中没有您要查找的人的信息"<<endl;}student::student()//voidstudent::shuru(){//初始化number[1]=1;number[2]=2;number[3]=3;number[4]=4;strcpy(name[1],"DW");strcpy(name[2],"DW");strcpy(name[3],"FA");strcpy(name[4],"FB");strcpy(ming[1],"JACK");strcpy(ming[2],"SUSO");strcpy(ming[3],"激M");strcpy(ming[4],"LUCY");strcpy(sex[1],"man");strcpy(sex[2],"woman");strcpy(sex[3],"woman");strcpy(sex[4],"man");ban激[1]=1;ban激[2]=1;ban激[3]=1;ban激[4]=1;strcpy(phone[1],"15270982145");strcpy(phone[2],"15270983232");strcpy(phone[3],"15270985452");strcpy(phone[4],"15270984323");}voidstudent::sortt(intn){for(inti=1;i<n;i++)for(intj=i;j<=n;j++){charaa[100];charbb[100];//charname[100][100];//字符串intban;intnum;charph[100];charse[100];if(strcmp(name[i],name[j])){strcpy(aa,name[i]);strcpy(name[i],name[j]);strcpy(name[j],aa);strcpy(bb,ming[i]);strcpy(ming[i],ming[j]);strcpy(ming[j],bb);ban=ban激[i];ban激[i]=ban激[j];ban激[j]=ban;num=number[i];number[i]=number[j];number[j]=num;strcpy(ph,phone[i]);strcpy(phone[i],phone[j]);strcpy(phone[j],ph);strcpy(se,sex[i]);strcpy(sex[i],sex[j]);strcpy(sex[j],se);}}}voidstudent::sorttt(intn)//按学号排号大小排序{for(inti=1;i<n;i++)for(intj=i;j<=n;j++){charaa[100];charbb[100];//charname[100][100];//字符串intban;intnum;//字符串charph[100];charse[100];if(number[i]>number[j]){strcpy(aa,name[i]);strcpy(name[i],name[j]);strcpy(name[j],aa);strcpy(bb,ming[i]);strcpy(ming[i],ming[j]);strcpy(ming[j],bb);ban=ban激[i];ban激[i]=ban激[j];ban激[j]=ban;num=number[i];number[i]=number[j];number[j]=num;strcpy(ph,phone[i]);strcpy(phone[i],phone[j]);strcpy(phone[j],ph);strcpy(se,sex[i]);strcpy(sex[i],sex[j]);strcpy(sex[j],se);}}cout<<"学号\t\t"<<"姓名\t\t"<<"性别\t\t"<<"班级\t\t"<<"电话号码"<<endl;...