c语言-会员卡管理程序内容摘要:

/*电话号码 */ float score。 /*积分 */ int lost。 /*判断丢失 */ }STUDENT。 void input(STUDENT s[])。 void searchoutput(STUDENT s[])。 void score(STUDENT s[])。 float deal(STUDENT s[])。 int lost(STUDENT s[])。 void delet(STUDENT s[])。 void sort(STUDENT s[])。 void howmany(STUDENT s[])。 main() {STUDENT s[100]。 /*存放会员信息 */ int choice1,choice2。 int i,j,b=0。 float money。 long n,num。 for(i=0。 i100。 i++) /*初始化姓名、积分、号码 */ { strcpy(s[i].name,)。 s[i].score=0。 s[i].num=0。 } for(j=0。 j++) {printf(============MENU=========\n)。 printf(new...................................................1\n)。 printf(old....................................................2\n)。 printf(the highest score..............................3\n)。 printf(how many customers.......................4\n)。 printf(exit..................................................5\n)。 scanf(%d,amp。 choice1)。 switch(choice1) { case 1:input(s)。 break。 case 2:for(i=0。 i++){ printf(===========MENU=========\n)。 printf(basic information............................1\n)。 printf(score....................................... ........2\n)。 printf(price................................................3\n)。 printf(lost..................................................4\n)。 printf(delete..............................................5\n)。 printf(exit this menu.................................6\n)。 scanf(%d,amp。 choice2)。 switch(choice2) { case 1:searchoutput(s)。 break。 case 2:score(s)。 break。 case 3:deal(s)。 break。 case 4:lost(s)。 break。 case 5:delet(s)。 break。 case 6:b=1。 break。 default:printf(Error\n)。 break。 }if(。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。