文档详情

c语言运动会管理系统 校运动会管理系统报告C语言(含完整代码).doc

发布:2017-01-12约1.73万字共38页下载文档
文本预览下载声明
c语言运动会管理系统 校运动会管理系统报告C语言(含完整代码) } } } } fp=fopen(quot;C:\\Users\\Administrator\\Desktop\\实训fprintf(fp,quot;%squot;,password); fclose(fp); system(quot;CLSquot;); printf(quot;密码正确!\nquot;); \\password.txtquot;,quot;wquot;); printf(quot;********************************************************\nquot;); printf(quot;***************************欢迎进入*********************\nquot;); printf(quot;********************************************************\nquot;); } if(s==0) count++; return ; if(count==3) printf(quot;你已经错误输入3次,系统退出!\nquot;); exit(0); else exit(1); void menu() { int ch1; char ch2; struct tm *pt; /*定义时间结构体*/ time_t t; t=time(NULL); pt=localtime(amp;t); /*读取系统日期并把它放到结构体中*/ do{ { printf(quot;\t\t当前系统日期:%d-%d-%d\nquot;,pt-gt;tm_year+1900,pt-gt;tm_mon+1,pt-gt;tm_mday); printf(quot;======================菜单=====================\nquot;); printf(quot; 1.输入 printf(quot; 3.排序 printf(quot; 5.得分 printf(quot; 7.插入 printf(quot; 9.显示 2.查找 4.修改 6.删除 8.保存 \nquot;); \nquot;); \nquot;); \nquot;); /*显示当前系统日期*/ 0.退出\nquot;); printf(quot;===============================================\nquot;); printf(quot;请选择功能lt;1-8gt;:[ ]\b\bquot;); //getchar(); scanf(quot;%dquot;,amp;ch1); switch(ch1) } } input(); break; find(); break; paixu(); break; xiugai(); break; defen(); break
显示全部
相似文档