云题海 - 专业文章范例文档资料分享平台

当前位置:首页 > C语言下的学生管理系统(含密码加密和验证码)

C语言下的学生管理系统(含密码加密和验证码)

  • 62 次阅读
  • 3 次下载
  • 2025/5/25 9:19:08

printf(\===================\\n\

if(strcmp(pwd_new,pwd_new1)==0) {

printf(\修改完成!\\n\ strcpy(stu[i].spwd,pwd_new);

printf(\===================\\n\ break; } else {

while(1) {

k++; if(k==3) {

printf(\错误次数过多,自动返回主菜单!\\n\

printf(\===================\\n\

student(userNO); } else {

printf(\输入两次密码不一致 请重新进入!\\n\

printf(\===================\\n\

modify(userNO); }

} }

} else {

printf(\密码输入不正确!自动返回主菜单\\n\

printf(\===================\\n\

student(userNO);

} } }

save();

student(userNO); }

void input()//增加学生信息 {

char ch;

int i,n,count= 0;

printf(\请输入添加学生信息的条数:\\n\ printf(\ scanf(\

printf(\===================\\n\ if(n<1||n>N) {

printf(\输入不合法,请重新输入:\\n\ input(); }

printf(\请添加学生信息:\\n\

printf(\学号\\t姓名\\t密码\\t班级\\t成绩一\\t成绩二\\t成绩三\\t年龄\\n\ read();

for(i=0;i

if(count == n) {

break; }

if(stu[i].no==0) {

fflush(stdin); printf(\

scanf(\&stu[i].score.score1,&stu[i].score.score2,&stu[i].score.score3,&stu[i].age);

stu[i].score.sum=stu[i].score.score1+stu[i].score.score2+stu[i].score.score3; count++; } }

save();

stu_ranking();

printf(\===================\\n\

printf(\添加学生信息成功!\\n\ printf(\是否继续?(Y/N)\\n\ fflush(stdin); printf(\ scanf(\ if(ch=='Y'||ch=='y') {

input(); }

admin(); }

void del()//删除学生信息 {

fflush(stdin); int i,j; char ch; int del_no;

printf(\请输入想要删除记录的ID:\\n\ printf(\

scanf(\

printf(\===================\\n\ read();

for(i=0;stu[i].no!=0;i++) {

if(del_no == stu[i].no) {

for(j=i;j

stu[j]=stu[j+1]; } } }

save();

stu_ranking();

printf(\===================\\n\

printf(\删除信息成功!\\n\

printf(\是否继续?(Y/N)\\n\ fflush(stdin); printf(\ scanf(\ if(ch=='Y'||ch=='y') {

del(); }

admin(); }

void change()//修改学生信息 {

fflush(stdin); int i; char ch;

int change_no;

printf(\请输入想要修改记录的ID:\\n\ printf(\

scanf(\

printf(\===================\\n\ read();

printf(\学号\\t姓名\\t密码\\t班级\\t成绩一\\t成绩二\\t成绩三\\t年龄\\n\ for(i=0;stu[i].no!=0;i++) {

if(change_no == stu[i].no) {

printf(\

stu[i].classnum,stu[i].score.score1,stu[i].score.score2,stu[i].score.score3,stu[i].age); printf(\请输入你要修改后的信息!\\n\

printf(\===================\\n\

printf(\

scanf(\&stu[i].score.score1,&stu[i].score.score2,&stu[i].score.score3,&stu[i].age); }

stu[i].score.sum=stu[i].score.score1+stu[i].score.score2+stu[i].score.score3; }

  • 收藏
  • 违规举报
  • 版权认领
下载文档10.00 元 加入VIP免费下载
推荐下载
本文作者:...

共分享92篇相关文档

文档简介:

printf(\===================\\n\ if(strcmp(pwd_new,pwd_new1)==0) { printf(\修改完成!\\n\ strcpy(stu[i].spwd,pwd_new); printf(\===================\\n\ break; } else { while(1) {

× 游客快捷下载通道(下载后可以自由复制和排版)
单篇付费下载
限时特价:10 元/份 原价:20元
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:fanwen365 QQ:370150219
Copyright © 云题海 All Rights Reserved. 苏ICP备16052595号-3 网站地图 客服QQ:370150219 邮箱:370150219@qq.com