C语言 大学期末 大作业 求会的好心人做一下! 有偿! 价格好商量!拜托

2025-02-25 20:26:21
推荐回答(4个)
回答1:

这个可以有。先发题目后说价格。最后代码+专账。如何?

回答2:

你好!具体是什么题目呢?

回答3:

本科时候的一个通信录管理,有你说的功能。完全可以运行。LZ看看吧。稍微加工一下就可以。1#include2#include3usingnamespacestd;4structFriend5{6doublenum;7stringname;8charsex;9stringtelnum;10stringaddr;11Friend*next;12};13Friend*head;14Friend*Create()15{16Friend*ps;17Friend*pEnd;18ps=newFriend;19cout>ps->num;21cout>ps->name;23cout>ps->sex;25cout>ps->telnum;27cout>ps->addr;29head=ps;30pEnd=ps;31cout>m;3435if(m=='y'||m=='n'||m=='Y'||m=='N')36{37while(m=='y'||m=='Y')38{39ps=newFriend;40cout>ps->num;42cout>ps->name;44cout>ps->sex;46cout>ps->telnum;48cout>ps->addr;50pEnd->next=ps;51pEnd=ps;52charn;53cout>n;55if(n!='y'&&n!='Y')56m='N';57else58m='y';59}60}61else62coutnext=NULL;64return(head);65}6667voidchaxun(intnum1,stringname1)//68{intr=0;69if(head==NULL)70{71r++;72coutnext)77{78if(pGuard->num==num1)79{80r++;81coutname==name1)85{86r++;87coutnum==number)105{106p=head;107head=head->next;108deletep;//**************109coutnext;pGuard=pGuard->next)114{115if(pGuard->next->num==number)116{117p=pGuard->next;118pGuard->next=p->next;119deletep;120coutnext=NULL;132return;133}134elseif(head->num>Node->num)135{136Node->next=head;137head=Node;138return;//****************************139}140Friend*pGuard=head;141while(pGuard->next&&pGuard->next->numnum)142pGuard=pGuard->next;143Node->next=pGuard->next;144pGuard->next=Node;145return;146}147voidshowlist(Friend*dhead)148{149coutnumnamesextelnumaddrnext;154cout>i;172while(i!=1&&i!=2&&i!=3&&i!=4)173{174cout>i;176}177178if(i==1|i==2||i==3||i==4)179{180stringstrChoice;181if(i==1)182{183do184{185cout>jj;188stringname2;//name189if(jj==1)200stringname2;201cout>name2;203chaxun(-1,name2);204}205cout>strChoice;207}while(strChoice=="y"||strChoice=="Y");208}209210if(i==2)211{212stringstrChoice2;213do214{215Friend*Node;216Node=newFriend;217cout>Node->num;219cout>Node->name;221cout>Node->sex;223cout>Node->telnum;225cout>Node->addr;227insert(Node);228showlist(head);229cout>strChoice2;231}while(strChoice2=="y"||strChoice2=="Y");232233}234235if(i==3)236{237stringstrChoice3;238do239{240inti;241cout>i;243Delete(i);244showlist(head);//end245cout>strChoice3;247}while(strChoice3=="y"||strChoice3=="Y");248}249250if(i==1||i==2||i==3)251{charx;252cout>x;254if(x=='y'||x=='Y')255t++;256}257258}259}260}

回答4:

具体做什么私信说一下便宜