客户消费积分管理系统c编写内容摘要:

dl。 cout * 2 查找客户 *endl。 cout * 3 修改客户 *endl。 cout * 4 删除客户 *endl。 cout * 5 显示客户 *endl。 cout * 6 统计客户 *endl。 cout * 7 退出 *endl。 cout * *endl。 cout ***************************endl。 cout 请输入您的选择 (1, 2, 3, 4, 5, 6):endl。 cinchoice。 if(choice==1) { (head)。 } //添加 else if(choice==2) { cout 请输入您查找客户的身份证号 :。 ciny。 while(strlen(y)!=18) { cout身份证号码位数有误请重新输入 (18 位 ):。 ciny。 10 } (head,y)。 } //查找 else if(choice==3) { cout 请输入您想修改客户的身份证号 :。 ciny。 while(strlen(y)!=18) { cout身份证号码位数有误请重新输入 (18 位 ):。 ciny。 } (head,y)。 //修改 } else if(choice==4) { coutendl。 cout 请输入你想要删除的客户的身份证号:。 ciny。 (head,y)。 //删除 } else if(choice==5) { 11 coutendl。 (head)。 //显示 } else if(choice==6) { coutendl。 (head)。 //统计 } else if(choice==7) exit(1)。 } while(choice=7)。 return 0。 } void A::Getelem (C *head) { C *p。 double y。 p=(C*)malloc(sizeof(C))。 /*申请空的节点空间 */ cout请输入姓名:。 cinpname。 cout请输入身份证号 (18 位 ):。 cinpID。 while(strlen(pID)!=18){ 12 cout身份证号码位数有误请重新输入 (18 位 ):。 cin pID。 } cout请输入消费金额:。 cinpconsume。 pinteger=pconsume。 y=display_discount(pinteger)。 //调用函数计算折扣 cout折扣 :y折。 pnext=headnext。 headnext=p。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。