diff --git a/a.c b/a.c new file mode 100644 index 0000000..d576437 --- /dev/null +++ b/a.c @@ -0,0 +1,42 @@ +#include +#include +#define N 2 +#define M 1 +#define W 1 +typedef struct score +{ +int mark[5]; +int itmnum; +int itmkind; +char itmname[20]; +char name[10]; +int level; +int range[5]; +}sc; +typedef struct school +{ +int sclnum; +char sclname[20]; +sc a[M+W]; +int mscore; +int wscore; +int sum; +struct school *next; +}scl; +scl *p,*q,*head,*g,*s,*u; +void menu() +{ +system("cls"); +printf("★================运动会比赛计分系统================= ★\n"); +printf("** 1-------------------键盘输入 **\n"); +printf("** 2-------------------输出 **\n"); +printf("** 3-------------------文件读入 **\n"); +printf("** 4-------------------查询 **\n"); +printf("** 5-------------------退出 **\n"); +printf("备注:\n"); +printf("**女子前三名依次得分:5分 3分 2分 **\n"); +printf("**男子前五名依次得分:7分 5分 3分 2分 1分 **\n"); +} +int main() +{menu(); +} diff --git a/a.exe b/a.exe new file mode 100644 index 0000000..42e5e42 Binary files /dev/null and b/a.exe differ