From 1eeb9e479719f868c4afd8008b5e44fcd067f1ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E6=99=BA=E9=9F=AC?= <2635915322@qq.com> Date: Mon, 25 Dec 2023 18:46:22 +0800 Subject: [PATCH] no problem --- 考试系统.c | 284 ++++++++++++++++++++++++++++++++++++++++++ 考试题库data2.txt | Bin 0 -> 14010 bytes 2 files changed, 284 insertions(+) create mode 100644 考试系统.c create mode 100644 考试题库data2.txt diff --git a/考试系统.c b/考试系统.c new file mode 100644 index 0000000..3501f52 --- /dev/null +++ b/考试系统.c @@ -0,0 +1,284 @@ +#include +#include + + +typedef struct student{ + char name[25]; + int num; + int t; + int f; + float total; +}STU; +typedef struct textpaper{ + char title[1000]; + char a[100]; + char b[100]; + char c[100]; + char d[100]; + char answer; +}Paper; +void Openfile();//´ò¿ªÎļþ +float pinfen(char,char);//ÆÀ·Ö +void chengji(); //°´Õճɼ¨ÌݶÈÊä³ö³É¼¨ +void design();//³öÌâϵͳ +void check();//²é¿´Ìâ¿â +void del();//ɾ³ýÌâÄ¿ +void alter();//ÐÞ¸ÄÌâÄ¿ +int a=0,d=0,t=0;//a±íʾÈËÊý t³õʼ»¯ÌâÄ¿¸öÊý <-È«¾Ö±äÁ¿ +struct student stu[100]; +Paper problem[1000]; +int main(){ + char ch,ch1,key;//key±íʾѧÉúÊäÈëµÄ´ð°¸ + float sum=0,count=0; + int b,c; + Openfile();//´ò¿ªÌâ¿â + printf("================================================================================\n\n"); + printf("================================================================================\n\n"); + printf("*************************»¶Ó­Ê¹Óÿ¼ÊÔϵͳ*******************************\n\n"); + printf("--------------------------------------------------------------------------------\n\n"); + printf("********************************************************************************\n\n"); + printf("================================================================================\n\n"); + printf("Çë°´ÈÎÒâ¼ü½øÈ뿼ÊÔϵͳϵͳ£º\n"); + getchar(); + system("cls"); + printf("ÊÇ·ñ½øÈ뿼ÊÔ: y/n yΪÊÇ£»nΪ²»ÊÇ\n"); + scanf("%c",&ch1); + getchar(); + if(ch1=='y'||ch1=='Y'){ + printf("--------------------------ÏȼÈëѧÉúÐÅÏ¢-----------------------------\n"); + printf("--------------------ÊÇ·ñÑ¡Ôñ¼Èë¶àÈË Y/N --------\n"); + printf("--------------------ÇëÊäÈë-------\n"); + scanf("%c",&ch); + getchar(); + + if(ch=='y'||ch=='Y'){ + printf("ÇëÊäÈëÄúÐèҪ¼ÈëµÄÈËÊý\n"); + scanf("%d",&a); + for(int i=0;i9@e-+;NW8;5TT|IE=Wf!fMIcDP0mpKn zfOVjNb)c-it(8N*8+>{-CIXWZ0Q@Qeew7S})xa5*&g#W>Iq#&~Ny`?27y$#`pB?zG zmjh+B0jJccy{Kx4J-eC`foTaKrU(?tP9$Ey+%NBW*C!Oy?k6o=1VRM*5*qt!XakaB K2Q&_V)%XEP$QrN! literal 0 HcmV?d00001