c课程设计足球俱乐部会员管理系统内容摘要:

msetw(10)pxbsetw(10)pnlsetw(10)pzhysetw(10)pzjsetw(10)psjendl。 outfilesetw(10)pxhsetw(10)pyhmsetw(10)pxbsetw(10)pnlsetw(10)pzhysetw(10)pzjsetw(10)psjendl。 p=pnext。 } } outfilesetw(10)pxhendl。 ()。 cout您录入的信息已插入 endl。 return 0。 } int delate() { hy *head,*p,*q,*r。 q=new hy。 head=q。 p=head。 int i。 ifstream infile(,ios::in)。 for(i=0。 i++) { infilepxh。 if(pxh==0) break。 else infilepyhmpxbpnlpzhypzjpsj。 q=new hy。 pnext=q。 p=q。 } ()。 p=head。 int k=0。 cout请输入您要删除会员的序号 endl。 string num。 cinnum。 if(headxh==num) {k=1。 head=headnext。 } else while(pxh!=0) { r=p。 p=pnext。 if(pxh==num) { k=1。 rnext=pnext。 break。 } } if(k==0) cout没有找到您要删除的会员 endl。 ofstream outfile(,ios::out)。 p=head。 cout删除后的信息如下 endl。 for(i=0。 i++) { if(pxh==0) break。 else { coutsetw(10)pxhsetw(10)pyhmsetw(10)pxbsetw(10)pnlsetw(10)pzhysetw(10)pzjsetw(10)psjendl。 outfilesetw(10)pxhsetw(10)pyhmsetw(10)pxbsetw(10)pnlsetw(10)pzhysetw(10)pzjsetw(10)psjendl。 p=pnext。 } } outfilesetw(10)0endl。 ()。 cout您已成功删除该会员的信息 endl。 return 0。 } int correct() { hy *head,*p,*q。 q=new hy。 string num1。 head=q。 p=head。 int i。 ifstream infile(,ios::in)。 for(i=0。 i++) { infilepxh。 if(pxh==0) break。 else infilepyhmpxbpnlpzhypzjpsj。 q=new hy。 pnext=q。 p=q。 } ()。 p=head。 int k=0。 cout请输入您要修改会员的序号 endl。 cinnum1。 while(pxh!=0) { if(pxh==num1) { cout请输入您要修改的会员资金 endl。 cinpzj。 break。 } else p=pnext。 } cout修改后的会员情况如下 endl。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。