宿舍管理系统c语言程序设计内容摘要:
ets(); fflush(stdin); printf(★请你输入密码: \n); ch=getch(); for(i=0; ch。 =39。 \r39。 ; i++) { [i]=ch; printf(*); if(ch==8) printf(\b\b\b\b); ch=getch(); fflush(stdin); } [i]=0; str1=strcmp(,); str2=strcmp(,); if(str1==0amp。 amp。 str2==0) return(1); else printf(登录失败。 \n); flag=0; } break; case 3: exit(1); } } return(0); } struct node*creat()//*创建链表 { struct node*head,*p1,*p2; int i; char c=39。 y39。 ; head=(struct node*)malloc(sizeof(struct node)); //*创建头结点 headnext=NULL; p1=head; for(i=0; c==39。 y39。 ; )//*创建信息小提示 { system(cls); p2=(struct node*)malloc(sizeof(struct node)); printf(★输入第 %d 个人的信息: \n,++i); //输入学生信息 printf(姓名 \t班级 \t\t 性别 \t 年龄 \t学号 \t楼栋号 \t 宿舍号 \n);fflush(stdin); gets(p2name); fflush(stdin); gets(p2Class); fflush(stdin); scanf(%c,amp。 p2sex); for(; p2sex。 =39。 f39。 amp。 amp。 p2sex。 =39。 m39。 ; ) { printf(★性别输入有误 ,你必须正确输入 39。 f39。 或者 39。 m39。 \n); fflush(stdin); scanf(%c,amp。 p2sex); } fflush(stdin); scanf(%d,amp。 p2age); while(p2age 16||p2age 30) { printf(★你输入的年龄段不在 1630 之间 ,请重新输入。 \n); scanf(%d,amp。 p2age); } scanf(%ld,amp。 p2stunum); while(p2stunum 100000||p2stunum=1000000) { printf(★你输入的学号不是六位数 ,请重新输入。 \n); scanf(%ld,amp。 p2stunum); } scanf(%d,amp。 p2dornum); while(p2dornum 16||p2dornum 1) { printf(★你输入的公寓号不在 116之间 ,请重新输入。 \n); scanf(%d,amp。 p2dornum); } scanf(%d,amp。 p2roomnum); p1next=p2; p1=p2; printf(★还要输入学生信息吗 ,输入 (y or n?)\n); c=getch(); fflush(stdin); system(cls); } p1next=NULL; return(head); } void save(struct node*head)//*保存文件 { struct node*p2; FILE*fp; if((fp=fopen(f: /,wt))==NULL) { printf(写文件出错,按任意键退出。 ); getch(); exit(1); } for(p2=headnext; p2。 =NULL; p2=p2next) fprintf(fp,%s\t%s\t%c\t%d\t%d\t%d\t%d\n, p2name,p2Class,p2sex,p2age,p2stunum,p2dornum,p2roomnum); getch(); fclose(fp); } void show(void)//*菜单显示 { printf(\n); printf($$$$$$$$$$欢迎进入学生宿舍信息管理系统。 $$$$$$$$$$\n); printf(\n); printf(宿舍是我家 ,爱护靠大家 \n); printf(\n); printf(|*|\n); printf(||\n); printf(|▲ ); printf(\t▲ ); printf(\t▲ |\n); printf(||\n); printf(|▲ ); printf(\t▲ ); printf(\t▲ |\n); printf(||\n); printf(|▲ ); printf(\t▲ ); printf(▲ |\n); printf(||\n); printf(|*|\n); printf(请输入你的选择的信息处理方式的序号。 \n); } void show1(void) { printf(*\n); printf(。 创建信息小提示: \n); printf(\n); printf(\n); printf(◆ 39。 f39。 或者 39。 m39。 其他均认为是错误操作。 \n); printf(\n); printf(◆ 1630之间 ,其他均认为是错误操作。 \n); printf(\n); printf(◆ ,如果学号少于或大于六位数字 ,系统认为此操作为非法操作。 \n); printf(\n); printf(◆ 116之间,其他数字均认为是错误操作。 \n); printf(\n); printf(◆ ,故宿舍号在下列范围内 ,其他区间均认为是非法操作: \n); printf(\n); printf(▲一楼 101150\t 二楼 201250\t三楼 301350\n); printf(\n); printf(▲四楼 401450\t 五楼 501550\n); printf(\n); printf(\n); printf(*\n); } struct node*read1(void) { struct node*head,*p1,*p2; FILE*fp; if((fp=fopen(f: /,rt))==NULL) { printf(★读取信息错误。 ,按任意键退出。 ); getch(); exit(1); } head=(struct node*)malloc(sizeof(struct node)); headnext=NULL; p1=head; while(。 feof(fp)) { p2=(struct node*)malloc(sizeof(struct node)); fscanf(fp,%s\t%s\t%c\t%d\t%d\t%d\t%d\n, p2name,p2Class,amp。 p2sex,amp。 p2age,amp。 p2stunum,amp。 p2dornum,amp。 p2roomnum); p1next=p2; p1=p2; } p1next=NULL; fclose(fp); return(head); } void readout(void)//*从磁盘中读取信息显示在屏幕上 { struct node*head,*p1,*p2; FILE*fp; if((fp=fopen(f: /,rt))==NULL) { printf(★读取信息错误。 ,按任意键退出。 ); getch(); exit(1); } head=(struct node*)malloc(sizeof(struct node)); hea。宿舍管理系统c语言程序设计
相关推荐
不诚实,自我约束能力差。 而良好行为习惯是做人的基础,如果能有效抓好学生常规教育,落实学生主体地位,培养学生诚实守信的习惯,对提高教育实效性有着十分重要的意义。 三、我校寄宿制学生管理的几点做法 我校对寄宿制学校学生的教育管理采取一系列的措施,月月抓,天天抓,时时抓。 上下形成合力,常抓不懈。 根据学校实际,我们制订了《寄宿制学生管理制度》,《寄宿制学生操行评分细则 》进行每日行为规范记录评分
管委会区域控制性详细规划对接,做到按规设计,企业按相关规定自主选择有资质的单位设计,厂区规划总平面图和效果图设计制作出后 及时报管委会审核并出具意见,再报建设规划管理部门审定即可实施。 施工中要主动接受质量、安全监督和消防审查,文明施工,确保安全。 企业建筑工程建设,经审查符合园区控规划后 第十四条 加强用地管理,严格执行工业项目用地控制指标。 工业项目的投资强度、容积率、建筑系数、绿化率
rgaining power of buyers d. existing rivalry 17. Switching costs and buyer loyalty are examples of strategic forces that determine the ____________. a. threat of substitutes b. threats of new
.................................................................................................................. 10 项目规划 ............................................................................
八、房屋 租金的交付方式:房屋年租金人民币贰拾柒万元整,租金交付方式为上打租,即于 2020 年 月 日前甲方将房屋向乙方实际交付使用 后 由乙方向 甲方一次性交付第一年租金人民币贰拾柒万元,此后于每年 月 日前一次性交付当年租金贰拾柒万元。 九、甲方应履行出租房屋的维修义务,在出租房屋需维修时,乙方可以要求 甲方 在合理的期限内加以维修,甲方未履行维修义务的,乙方可以自行或委托他人予以维修
这些不足,对人员要求:前台两人,后台一人。 节省了人员的开支,对设备要求:计算机,网线,软件要求,电力要求,节省了纸和笔的消耗,相比而言,建议系统比原有系统更优 7 越。 影响 对设备的影响 宾馆需要购买一台具有很好性能的计算机作为服务器。 对软件的影响 可以连接到公司的财务系统和进销存管理系统,节省了信息的录入。 对用户单位机 构的影响 节省了用户的操作时间,加快了处理顾客提交事务的速度。