如何做宿舍管理系统
中文摘要 随着电脑的普及与使用,现在的管理也提升了一个档次,渐渐实现了无纸化办公,即从原来的人工记录管理模式转变为电脑一体化管理。
高校是科研的阵地,后勤的公寓管理也应该一改传统的人工管理,更加信息化,时代化,节省人力物力,提高效率。
基于这一点,开发此学生公寓管理软件。
学生公寓管理软件,是以高校的管理方式为实例而设计的一种实用型管理系统。
本系统最大的特点是通用性、简单操作性,适用于同行业以及一些同类型的企业管理。
随着学校寄宿人员的增多,公寓管理人员的负担越来越重,为了让所有公寓管理人员能从繁重的工作中解脱出来,实现无纸化办公;使工作更有条理,更方便,更有效率而开发出这套公寓管理软件。
软件从对学生的分房开始到最后的公寓管理全部电脑化。
它主要包括:公寓、寝室的配置、住宿人员登记、卫生检查、公寓资产、学生违纪、值班老师记录以及对学生住宿情况查询,可以更快地了解到每个学生的住宿情况,使公寓的管理效率更高,做的更好! 关键字:配置、登记、检查 Abstract With the popularization and use of the computer, present management has been promoted much, more and more jobs have been done by computer. It namely changes the original artificial record management mode into computer's integrating and managing. The university is the position of scientific research, the apartment management should change traditional managing artificially too, for the efficiency. So , develop the management software of student's apartment . Student Apartment Management System is a utility management system based on the managing mode of many universities and colleges.Universal and easy-operating are the greatest features of the system ,which is also applicable for enterprises of the same type.Apartment keepers bear a increasingly heavy burden because of the gradually added number of roomers.In order to free apartment keepers from the heave work,and make the work more convienent and efficient. The apartment management system is developed. The system computerized all the processes concerning the apartment management which include apartment,dormitory distribution,roomer registration,santitation examination,and the query for apartment property,students' violation of discipline,teachers' records and rooming situation.It makes the apartment management more efficient and much better. Key word: dispose 、 register 、 check
学生寝室管理系统设计与实现 数据结构
宿舍管理,没什么好玩的,就是繁琐,很多东西需要你细化,而且一般要求为交互式平台,而且选项多,出错处较多,排错就是一个相当大的工程。
我写的这个里面没有太多的排错功能,因为那东西就是烦而已,多几个if 判断下而已,因为烦的慌,觉得也没啥意思,就没细细的写,粗略的写了几个。
查询也是只写了按学号查询,是用的折半查找。
排序是用的快速排序,因为时间消耗比较小,喏,那是上个排序综合里有的,所以写这个就用的那个里的快速排序,很简单,就是对copy下而已,改下结构体,complete!呵呵,程序如下:头文件里的:struct student{char name[10];int num;int dormin;};cpp文件:// 宿舍管理.cpp : 定义控制台应用程序的入口点。
//////////////////////////////////////////////////////////////////////////*8、宿舍管理查询软件(**)任务:为宿舍管理人员编写一个宿舍管理查询软件, 程序设计要求:(1)采用交互工作方式(2)可以增加、删除、修改信息(3)建立数据文件 ,数据文件按关键字(姓名、学号、房号)进行排序(选择、快速排序、堆排序等任选一种)(4) 查询 : a.按姓名查询 ;b.按学号查询 ;c按房号查询(5) 打印任一查询结果(可以连续操作)*//////////////////////////////////////////////////////////////////////#include "stdafx.h"#include#include#includeusing namespace std;#define max 10int _tmain(int argc, _TCHAR* argv[]){void input(student *,int);void display(student *,int);void add(student *,int &,int);void qsort(student *,int,int);void del(student *,char *,int &);void change(student *,char *,int );void search(student *,int,int,int);int stunum,choose;ifstream infile("stunum.txt");if(!infile) coutstunum;infile.close();char name[10];coutchoose;student *S;S=new student[max];switch(choose){ case 1:{couttemp;if(temp=='y') yn=1;if(yn){cout>stunum; input(S,stunum);ofstream outfile("stunum.txt");outfilecchoose; switch(cchoose) {case 1:{coutname;change(S,name,stunum);break;} case 2:{int ad;cout>ad;add(S,stunum,ad);break;} case 3:{coutname;del(S,name,stunum);break;} break;}break;}case 4:{cout>cchoose;search(S,0,stunum,cchoose); break;}case 5:{ifstream infile("stuinfor.txt",ios::in); for(int i=0;i>S[i].name>>S[i].num>>S[i].dormin; qsort(S,0,stunum-1); ofstream outfile("sorted_infor.txt"); for(int i=0;i>stu[i].name>>stu[i].num>>stu[i].dormin; outfilestu[i].name>>stu[i].num>>stu[i].dormin; coutstu[all+i].name>>stu[all+i].num>>stu[all+i].dormin; outfilelow&&a[high].num>=piv) high--; tem=a[high];a[high]=a[low];a[low]=tem; while(high>low&&a[low].numstu[i].name>>stu[i].num>>stu[i].dormin; if(strcmp(name,stu[i].name)==0) delper=i;} coutcheck; ofstream outfile("stuinfor.txt"); if(check=='y'||'Y') { for(int i=delper;i>stu[i].name>>stu[i].num>>stu[i].dormin; if(strcmp(name,stu[i].name)==0) change=i; } coutcheck; ofstream outfile("stuinfor.txt"); if(check=='y'||'Y') { coutnam>>cn>>cd; strcpy(stu[change].name,nam);stu[change].num=cn;stu[change].dormin=cd; for(int i=0;i>stu[i].name>>stu[i].num>>stu[i].dormin;while(stu[mid].num!=check&&high>=low) {mid=(low+high)/2;if(stu[mid].num>check) high=mid-1;else low=mid+1;}//折半查找}if(stu[mid].num==check){cout<<"您要查询的信息如下:"<<endl;cout<<stu[mid].name<<" "<<stu[mid].num<<" "<<stu[mid].dormin<<endl;}else cout<<"未能查到您所要查询信息!"<<endl;}
转载请注明出处51数据库 » 软件工程学生宿舍管理系统
段子首届CEO