123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225/*学生成绩信息管理系统 V1。
0。1*/#include#include#include#include#define st struct student kc[]#define cls system("cls")struct student{ int id; float ckc[4];//五门课程 float ave;//平均成绩 float total;//总分 int haved;}kc[];struct student kc[20]={ };int password();int menu();int getinfo();int stuinfo();int kcinfo();int otinfo();void btdy(char title[],char cha[]);int pwc=0;int main(void){ system("title 学生成绩信息管理系统V1。
0"); system("color 30"); password();}int menu(){char ch; btdy("【学生成绩管理系统】V1。0","-");printf("
|-----------------------------------|");printf("
| [1]--成绩录入 |");printf("
| [2]--学生信息 |");printf("
| [3]--课程信息 |");printf("
| [4]--获奖与补考信息 |");printf("
| [0]--退出系统 |"); printf("
|-----------------------------------|");while(1){ ch=getch(); if(ch=='1') getinfo(); if(ch=='2') stuinfo(); if(ch=='3') kcinfo(); if(ch=='4') otinfo(); if(ch=='0') exit(0); else menu();} }int getinfo(){ int pn,k,t_sum=0; btdy("成绩录入","-"); printf("
接下来你需要输入十名学生的各科成绩!(输入99999退出录入)"); for(pn=0;pnkc_max[k]) kc_max[k]=kc[pn]。
ckc[k]; if(kc[pn]。
ckc[k]=60) kc_pass[k] ; } } for(pn=0;pn2) { printf("
password error,you can not use the software!"); getch(); exit(1); } pwc ; char user[20]="abc"; char pw[20]="123456"; char get_user[20]; char get_pw[20]; printf("
Enter the user name:"); scanf("%s",get_user); if((strcmp(get_user,user))==0) { printf("
Enter the password:"); scanf("%s",get_pw); if((strcmp(get_pw,pw))==0) { printf("Welcome to user the software"); getch(); menu(); } else { printf("
password error"); getch(); password(); } } else { printf("
No fine the user!"); getch(); password(); }}void btdy(char title[],char cha[])//标题显示 { cls; int pn; for(pn=0;pn
嗯,这是以前写的一个,也很简单的。
全部