c语言用户输入若干个学生成绩,C语言题目有若干个学生,每个学生的数据包括学号、姓名、五门课的成 爱问知识人...

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

嗯,这是以前写的一个,也很简单的。

全部

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值