《最新C语言-学生成绩管理系统(1).doc》由会员分享,可在线阅读,更多相关《最新C语言-学生成绩管理系统(1).doc(21页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。
1、Four short words sum up what has lifted most successful individuals above the crowd: a little bit more.-author-dateC语言-学生成绩管理系统(1)C语言-学生成绩管理系统(1)在TC环境下吧,界面是一片的黑。可以实现成绩的录入、查询、排序、物理删除、永久删除记不太清楚了,当时我们的报告要求手写的,也没留下什么电子资料。C语言还是很好学很好用的,希望对大家有帮助!#include #include #include #include struct student int id; ch
2、ar name10; int age; char sex10; char birthady20; char address50; char tel15;char E_mail30;st50; int i=0; void shuru() char a; do printf(ninput num:); scanf(%d,&sti.id); fflush(stdin); printf(ninput name:); gets(sti.name); printf(ninput age:); scanf(%d,&sti.age); fflush(stdin); printf(ninput sex:); g
3、ets(sti.sex); fflush(stdin); printf(ninput birth:); gets(sti.birthady); fflush(stdin); printf(ninput address:); gets(sti.address); printf(ninput tell:); scanf(%s,&sti.tel);printf(ninput E_mail:);scanf(%s,&sti.E_mail);printf(nWhether input another students information ?(y/n); fflush(stdin); a=getchar
4、(); i+; while(a=y & i=50); void xianshi() int j;printf(=XUESHENG XINXIGUANLIXITONG=n); printf(numtnametagetsextbirthtaddr tell E_mailn); for(j=0;ji;j+) printf(%dt%st%dt%st%st%s%12s%18sn, stj.id,stj.name,stj.age,stj.sex,stj.birthady,stj.address,stj.tel,stj.E_mail); printf(=ZHI ZUO REN:sunqi=n); void
5、clearscreen() getchar(); system(cls);void paixu() int j,k; int temp; for(j=0;ji;j+) for(k=0;ki-1-j;k+) if(stk.agestk+1.age) temp=stk.age; stk.age=stk+1.age; stk+1.age=temp; xianshi(); void chazhao() int m=0; char name20,b; do printf(ninput name of student:); fflush(stdin); gets(name); for(m=0;m=20)
6、printf(ntCan not find this student!n); else printf(numtnametagetsextbirthtaddr tell E_mailn); printf(%dt%st%dt%st%st%s%12s%18sn, stm.id,stm.name,stm.age,stm.sex,stm.birthady,stm.address,stm.tel,stm.E_mail); printf(nFind another student?(y/n); fflush(stdin); b=getchar(); while(b=y); void shanchu() ch
7、ar name20,c; int a,b; do printf(nInput the name of delet student:n); fflush(stdin); gets(name); for(a=0;ai;a+) if(strcmp(name,sta.name)=0) break; for(b=a;bi) printf(tCan not find this student!n); else i-; xianshi(); printf(nContinue delet a student?(y/n) ); fflush(stdin); c=getchar(); while(c=y); vo
8、id charu() shuru(); paixu(); void main() int change; do system(cls); printf(*XUESHENG XINXI GUANLIXITONG *n); printf( 1: shuru xuesheng xingxin); printf( 2: xianshi xuesheng xinxin); printf( 3: chazhao xuesheng xinxin); printf( 4: shanchu xuesheng xinxin); printf( 5: charu xuesheng xinxin); printf(
9、6: paixu xuesheng xinxin); printf( 7: tuichu chengxun);printf(*n);fflush(stdin); printf(shuru gongneng xuanxiang:); scanf(%d,&change); switch(change) case 1: shuru(); break; case 2: xianshi(); break; case 3: chazhao(); break; case 4: shanchu(); break; case 5: charu(); break; case 6:paixu();break;case 7:break; getch(); while(change!=7); -