校运动会c语言程序编写,校级运动会管理系统c语言程序

41528d3028836879cd698677c3999917.gif校级运动会管理系统c语言程序

#include #include #include #include #define SIZE 9 #define N 3 #define WM 3 void bsxm(); //比赛项目 void csxx(); //参赛学校 void ttzf(); //团体总分 void Ination(); void main(); void menu(); void printf_back(); void saveathlete(); void saveprogram(); void saveschool(); void savescore(); void Search(); int i; FILE *fp1,*fp2,*fp3,*fp4; struct athlete //定义运动员信息 { char univ[5]; char name[8]; char prog[15]; char mingci[5]; int score; } at[SIZE]; struct xuexiao //定义学校信息 { char univ[5]; char prog[15]; int num_athlete; } xx[N]; struct program //定义项目信息 { char prog[5]; int quming; char ath1[5]; char ath2[5]; char univ1[5]; char univ2[5]; } pro[WM]; struct zongfen //定义学校得分信息 { char univ[5]; char prog1[5]; char prog2[5]; char prog3[5]; int score1; int score2; int score3; int total_score; } zf[N]; void Ination()//进入信息录入系统选择系统子函数 { int n,w ; do { puts(“\n\n\n“); puts(“\t\t***^__^ Welcome to load 信息录入 system! ^__^***\n“); puts(“\t\t*************************MENU*************************\n“); puts(“\t\t******** 1.saveathlete **************\n“);//运动员姓名录入 puts(“\t\t******** 2.saveschool **************\n“);//运动员学校录入 puts(“\t\t******** 3.saveprogram() **************\n“);//参加项目录入 puts(“\t\t******** 4.back **************\n“);//退出 puts(“\t\t******************************************************\n“); printf(“Choic your number(1-4):[ ]\b\b“); scanf(“%d“, if (n4) { w=1; printf(“\n\n\t\t----------------------DATAERROR!----------------------\n\n\n“); getchar(); } else w=0; } while (w==1); switch(n) { case 1 : saveathlete(); break;// 保存运动员信息子函数 case 2 : saveschool(); break;//保存学校信息子函数 case 3 : saveprogram();break;//保存项目比赛信息子函数 case 4 : exit(0); } } void saveathlete()//保存运动员信息子函数 { printf(“\n请输入各项目获奖运动员的信息:“); for(i=0;i

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值