宿舍管理系统,宿舍管理系统免费版

宿舍管理系统,宿舍管理系统免费版缩略图

学生宿舍管理系统

学生宿舍管理系统

#include “stdio.h”

#include “stdlib.h”

#include “string.h”

typedef struct

{

char nums[15]; //学号

char clas[10]; //班级

char name[16]; //姓名

char sex [10]; //性别

char room[10]; //住址

char tele[14]; //电话

}STUDENT;

int enter(STUDENT t[]); //输入记录

void list(STUDENT t[],int n); //显示记录

void search(STUDENT t[],int n); //按学号查找

int Delete(STUDENT t[],int n); //删除记录

int insert(STUDENT t[],int n); //插入记录

void save(STUDENT t[],int n); //记录保存为文件

void display(STUDENT t[]); //按序号查找显示记录

void copy(); //文件复制

void print(STUDENT temp); //显示单条记录

int find(STUDENT t[],int n,char *s);//查找函数

int Exit(); //退出函数

//自定义用户权限函数

char chrPass[20];

void SavePass()

{

char chr;

int count;

count = 0;

while((chr=getch())!=13)

{

chrPass[count] = chr;

printf(“*”);

count++;

}

chrPass[count+1] = ‘\0’;

}

int quanxian()

{

char user[15];

printf(“\t\t*****************************************\n\n\t\t 欢迎您访问学生宿舍管理查询系统 \n\n\t\t*****************************************\n\n”);

printf(“\n\t\t\t提示 用户名jsj081 密码hyct”);

printf(“\n\t\t用户名:”);

scanf(“%s”,user);

printf(“\t\t密 码:”);

SavePass();

printf(“\n”);

if((strcmp(chrPass,”hyct”)==0)&&(strcmp(user,”jsj081″)==0))

return 1;

else

return 0;

}

void main()

{

int choice;

char ch,ch1;

int user;

STUDENT stu[M]; //定义结构体数组

int length; //保存记录长度

system(“cls”); //清屏

user=quanxian(); //调用用户权限函数

printf(“\n”);

while(1)

{

printf(“\t\t********************请选择*********************\n”);

printf(” \t\t1. 录入信息\n”);

printf(” \t\t2. 显示全部住宿信息\n”);

printf(” \t\t3. 搜索住宿信息\n”);

printf(” \t\t4. 删除住宿信息\n”);

printf(” \t\t5. 插入住宿信息 \n”);

printf(” \t\t6. 保存至文件\n”);

printf(” \t\t7. 按序号显示记录\n”);

printf(” \t\t0. 退出\n”);

printf(“\t\t***********************************************\n”);

学生公寓管理系统

学生公寓管理系统

综合上述要求,建意使用建硕企业管理软件,建硕企业管理软件是一套网络版的自定义管理系统,是专门为不同行业,不同企业,不同岗位设计的一套完全让用户自己设计管理模板的管理系统,

1.宿舍管理:记录宿舍基本信息、寝室基本信息、寝室卫生、寝室费用,对宿舍情况的记录、修改、统计

2.学生管理:包括学生学学籍管理、学生课程管理、学生毕业管理等,为教务人员进行教务管理提供有效的信息服务。学籍管理覆盖学生从入学申请到毕业各环节,如注册、选课、学习、免修代修、学籍变动、成绩、毕业、学位等。学生、教师和相关的管理者能够对信息进行修改、添加等操作。

3.系统管理:对添加删除用户及分配相应权限、密码修改、登陆、数据备份、数据恢复等都由用户自己来操作完成

4.系统采用B/S架构,有单独的登陆界面。系统为网络版使用,只要电脑联网,在任何地点都可以随时查看,录入数据。

如何做宿舍管理系统

如何做宿舍管理系统

中文摘要 随着电脑的普及与使用,现在的管理也提升了一个档次,渐渐实现了无纸化办公,即从原来的人工记录管理模式转变为电脑一体化管理。高校是科研的阵地,后勤的公寓管理也应该一改传统的人工管理,更加信息化,时代化,节省人力物力,提高效率。基于这一点,开发此学生公寓管理软件。学生公寓管理软件,是以高校的管理方式为实例而设计的一种实用型管理系统。本系统最大的特点是通用性、简单操作性,适用于同行业以及一些同类型的企业管理。随着学校寄宿人员的增多,公寓管理人员的负担越来越重,为了让所有公寓管理人员能从繁重的工作中解脱出来,实现无纸化办公;使工作更有条理,更方便,更有效率而开发出这套公寓管理软件。软件从对学生的分房开始到最后的公寓管理全部电脑化。它主要包括:公寓、寝室的配置、住宿人员登记、卫生检查、公寓资产、学生违纪、值班老师记录以及对学生住宿情况查询,可以更快地了解到每个学生的住宿情况,使公寓的管理效率更高,做的更好! 关键字:配置、登记、检查 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

以上内容转载自: http://www.5156bs.com/include/ShowProduct.aspx?ProdID=80097

宿舍管理系统的功能包括哪些?

新建宿舍 注销宿舍 宿舍人员的录入 宿舍分布 宿舍设施 宿舍人数 宿舍状态…

学生宿舍管理系统,C++源码

#include

#include

#include

#include

using namespace std;

class student

{

private:

long int stu_num; //学号,宿舍号

char stu_name[40]; //姓名

char class_name[40]; //班别

char house_name[20]; //宿舍

public:

student()

{

stu_num=0;

stu_name[0] =0;

class_name[0] =0;

house_name[0] =0;

}

student::student(long a, char * b,char *c,char *d)

{

Setdata(a , b, c, d);

}

char * Getstuname(void) //姓名查找

{

return stu_name ;

}

long Getstunum(void) //学号查找

{

return stu_num;

}

char * Gethousename(void) //宿舍号查找

{

return house_name;

}

char * Getclassname(void) //按班级查找

{

return class_name;

}

void Setdata(long a, char *b,char *c,char *d)

{

stu_num = a;

strcpy(stu_name, b);

strcpy(class_name, c);

strcpy(house_name, d);

}

void Show(void)

{

cout<<"学号:"<

cout<<"班级:"<

}

};

void main(void)

{

student s1;

int flags=0;

long stu_num; //学号

char stu_name[40]; //姓名

char class_name[40]; //班级

char house_name[20]; //宿舍

time_t t;

time(&t);

ifstream file1;

ofstream file3;

char flag = ‘y’;

cout<< "---------------------------------学生成绩管理系统-------------------------------"<

cout<< "\t\t\t 时间:" << ctime(&t);

while( flag==’y’ || flag==’Y’)

{ //由flag控制循环

cout<<"--------------------------------------------------------------------------------\n";

cout<<"\t\t 1:注册学生!\n";

cout<<"\t\t 2:按学号查看学生信息!\n";

cout<<"\t\t 3:按宿舍号查看学生信息!\n";

cout<<"\t\t 4:按姓名查看学生信息!\n";

cout<<"\t\t 5:按班级查看学生信息!\n";

cout<<"\t\t 6:显示全部学生信息\n";

// cout<<"\t\t 7:按学号修改学生信息\n";

// cout<<"\t\t 8:按学号删除学生信息!\n";

cout<<"--------------------------------------------------------------------------------\n";

cout<<"请输入选择:";

char choice;

cin>>choice;

switch(choice)

{

case ‘1’:

file3.open(“c:\\stu.dat”,ios::app|ios::binary);

input: flags=0;

cout<<"输入学号:";

cin>>stu_num;

while (stu_num<100000 || stu_num>999999)

{

cin.clear();

rewind(stdin);

cout << "你输入的学号不正确,请输入一个六位数的学号" << endl;

cout << "学号:";

cin >> stu_num;

}

file1.open(“c:\\stu.dat”,ios::in | ios::binary | ios::beg);//按读方式打开文件

while(!file1.eof())

{

int n;

file1.read((char *)&s1,sizeof(student));

n=file1.gcount();

if(n==sizeof(student))

{

if(s1.Getstunum()==stu_num)

flags=1;

}

}

file1.clear();

file1.close();

if (flags==1)

{

cin.clear();

cout << "学号重复,请重输入!" << endl;

goto input;

}

cout<<"输入姓名:"; cin>>stu_name;

cout<<"输入班级:"; cin>>class_name;

cout<<"输入宿舍:"; cin>>house_name;

s1.Setdata(stu_num,stu_name,class_name,house_name);

file3.write((char*)&s1,sizeof(s1));

file3.clear();

file3.close();

break;

case ‘2’: //按学号查找

cout<<"请输入学生的学号:";

cin>>stu_num;

while (stu_num<100000 || stu_num>999999)

{

cin.clear();

rewind(stdin);

cout << "你输入的学号不正确,请输入一个六位数的学号" << endl;

cout << "学号:";

cin >> stu_num;

}

file1.open(“c:\\stu.dat”,ios::in | ios::binary | ios::beg);//按读方式打开文件

while(!file1.eof())

{

int n;

file1.read((char *)&s1,sizeof(student));

n=file1.gcount();

if(n==sizeof(student))

{

if(s1.Getstunum()==stu_num) //显示学生信息

{

s1.Show();

flags=1;

}

}

}

file1.clear();

file1.close();

if (flags==0)

cout << "没有找学号为:"<< stu_num <<"的学生记录!" << endl;

flags=0;

break;

case ‘3’: //按宿舍号查找

cout<<"请输入宿舍号:";

cin>>house_name;

file1.open(“c:\\stu.dat”,ios::in | ios::binary | ios::beg);//按读方式打开文件

while(!file1.eof())

{

int n;

file1.read((char *)&s1,sizeof(student));

n=file1.gcount();

if(n==sizeof(student))

{

if(strcmp(s1.Gethousename(),house_name)==0)

{

s1.Show();

flags=1;

}

}

}

file1.clear();

file1.close();

if (flags==0)

cout << "没有找到宿舍为:"<< house_name <<"的学生记录!" << endl;

flags=0;

break;

case ‘4’: //按姓名查找

cout<<"请输入学生姓名:";

cin>>stu_name;

file1.open(“c:\\stu.dat”,ios::in | ios::binary | ios::beg);//按读方式打开文件

while(!file1.eof())

{

int n;

file1.read((char *)&s1,sizeof(student));

n=file1.gcount();

if(n==sizeof(student))

{

if(strcmp(s1. Getstuname(),stu_name)==0)

{

s1.Show();

flags=1;

}

}

}

file1.clear();

file1.close();

if (flags==0)

cout << "没有找到姓名为:"<< stu_name <<"的学生记录!" << endl;

flags=0;

break;

case ‘5’: //按班级查找

cout<<"请输入班级名称:";

cin>>class_name;

file1.open(“c:\\stu.dat”,ios::in | ios::binary | ios::beg);//按读方式打开文件

while(!file1.eof())

{

int n;

file1.read((char *)&s1,sizeof(student));

n=file1.gcount();

if(n==sizeof(student))

{

if(strcmp(s1. Getclassname(),class_name)==0)

{

s1.Show();

flags=1;

}

}

}

file1.clear();

file1.close();

if (flags==0)

cout << "没有找到该班级为:"<< class_name <<"的学生记录!" << endl;

flags=0;

break;

case ‘6’: //显示全部学生信息

file1.open(“c:\\stu.dat”,ios::in | ios::binary);//按读方式打开文件

while(!file1.eof())

{

int n;

file1.read((char *)&s1,sizeof(student));

n=file1.gcount();

if(n==sizeof(student))

{

s1.Show();

flags=1;

}

}

file1.clear();

file1.close();

if (flags==0)

cout << "数据库没有记录!" << endl;

flags=0;

break;

// case ‘7’: //修改学生信息按学号

// flags=0;

// cout<<"请输入要修改学生的学号:";

// cin>>stu_num;

// while (stu_num<100000 || stu_num>999999)

// {

// cin.clear();

// rewind(stdin);

// cout << "你输入的学号不正确,请输入一个六位数的学号" << endl;

// cout << "学号:";

// cin >> stu_num;

// }

// file1.open(“c:\\stu.dat”,ios::in | ios::binary | ios::beg);//按读方式打开文件

// while(!file1.eof())

// {

// int n;

// file1.read((char *)&s1,sizeof(student));

// n=file1.gcount();

// if(n==sizeof(student))

// {

// if(s1.Getstunum()==stu_num)

// {

// file3.open(“c:\\stu.dat”,ios::out|ios::binary);

// cout<<"输入姓名:"; cin>>stu_name;

// cout<<"输入班级:"; cin>>class_name;

// cout<<"输入宿舍:"; cin>>house_name;

// s1.Setdata(stu_num,stu_name,class_name,house_name);

// file3.write((char*)&s1,sizeof(s1));

// file3.close();

// flags=1;

// }

// }

// }

// file1.clear();

// file1.close();

// if (flags==0)

// {

// cout << "没有此学生记录,不能进行修改!" << endl;

// break;

// }

// break;

// case ‘8’: //删除学生信息按学号

default: flag = ‘n’;

break;

}

}

cout << "谢谢您的使用!" << endl;

}

学生宿舍管理系统设计 功能:实现简单的学生宿舍基本信息管理,宿舍的基本信息包括楼号、房间号、面积、所

可以使用Baidu Hi联系我 有时间可能完成你所面临的任务 类似的要求也可能联系我 ES:\\D5F7148BF386E24B1AD26AB90E6719AA

vfp课设学生宿舍管理系统的设计和实现

const int WM_HOTKEY = 0x0312; switch (m.Msg) { case WM_HOTKEY: ShowForm(); break; default: break; } base.WndProc(ref m); }

宿舍管理系统的住宿管理状态

b/s模式的宿舍管理系统能够实现数据共享.同时也能结合学籍管理系统或者员工人力资源系统进行合理的二次开发.b/s模式的宿舍管理系统其实就是房间管理和人员管理的结合.

学生寝室管理系统设计与实现 数据结构

宿舍管理,没什么好玩的,就是繁琐,很多东西需要你细化,而且一般要求为交互式平台,而且选项多,出错处较多,排错就是一个相当大的工程。我写的这个里面没有太多的排错功能,因为那东西就是烦而已,多几个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

#include

using namespace std;

#define max 10

int _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) cout<<"文件中尚未创建信息!"<

else infile>>stunum;

infile.close();

char name[10];

cout<<"****************************************************"<

cout<

cout<<" 欢迎进入学生宿舍管理系统!!"<

cout<

cout<<"****************************************************"<

while(1){

cout<<"1.输入学生宿舍信息"<

cout<<"2.显示已输入信息"<

cout<<"3.信息修改"<

cout<<"4.信息查询"<

cout<<"5.信息排序"<

cout<<"6.退出系统"<

cout<<"请输入需要执行的任务:";

cin>>choose;

student *S;S=new student[max];

switch(choose){

case 1:{cout<<"输入数据将使原来数据丢失,确定这样做吗?(y/n)"<

bool yn=0;char temp;

cin>>temp;

if(temp==’y’) yn=1;

if(yn){cout<<"请输入学生数目:";

cin>>stunum;

input(S,stunum);

ofstream outfile(“stunum.txt”);

outfile<

outfile.close();break;}}

case 2:display(S,stunum);break;

case 3:

{int cchoose;cout<<"1.修改信息"<

cout<<"2.添加信息"<

cin>>cchoose;

switch(cchoose)

{case 1:{cout<<"请输入修改的信息人名"<>name;change(S,name,stunum);break;}

case 2:{int ad;cout<<"请输入添加人数:";cin>>ad;add(S,stunum,ad);break;}

case 3:{cout<<"请输入删除信息的人名"<>name;del(S,name,stunum);break;}

break;}break;}

case 4:{cout<<"请输入学号:";

int cchoose;cin>>cchoose;search(S,0,stunum,cchoose);

break;}

case 5:{ifstream infile(“stuinfor.txt”,ios::in);

for(int i=0;i

infile>>S[i].name>>S[i].num>>S[i].dormin;

qsort(S,0,stunum-1);

ofstream outfile(“sorted_infor.txt”);

for(int i=0;i

cout<

outfile.close();infile.close();break;}

case 6:cout<<" 谢谢使用!"<

}

}

ofstream outfile(“stunum.txt”);

outfile<

outfile.close();

return 0;

}

void input(student *stu,int all)

{ofstream outfile(“stuinfor.txt”);

for(int i=0;i

{cout<<"请输入第"<

cin>>stu[i].name>>stu[i].num>>stu[i].dormin;

outfile<

}

outfile.close();

}

void display(student *stu,int all)

{

ifstream infile(“stuinfor.txt”,ios::in);

if(!infile) cerr<<"文件打开失败!"<

else{

for(int i=0;i

{cout<<"输入的第"<

infile>>stu[i].name>>stu[i].num>>stu[i].dormin;

cout<

}

infile.close();}

}

void add(student *stu,int &all,int add)

{

ofstream outfile(“stuinfor.txt”,ios::app);

for(int i=0;i

{

cout<<"请输入第"<

cin>>stu[all+i].name>>stu[all+i].num>>stu[all+i].dormin;

outfile<

}

all+=add;

outfile.close();

}

//快速排序

int partition(student *a,int low,int high)

{

student tem;int piv=a[low].num;

while(high>low)

{

while(high>low&&a[high].num>=piv) high–;

tem=a[high];a[high]=a[low];a[low]=tem;

while(high>low&&a[low].num<=piv) low++;

tem=a[high];a[high]=a[low];a[low]=tem;

}

return low;

}

void qsort(student *a,int low,int high)

{int pivotloc;

if(low

{

pivotloc=partition(a,low,high);

qsort(a,low,pivotloc-1);

qsort(a,pivotloc+1,high);

}

}

void del(student *stu,char *name,int &num)

{int delper;char check;

ifstream infile(“stuinfor.txt”);

for(int i=0;i

{

infile>>stu[i].name>>stu[i].num>>stu[i].dormin;

if(strcmp(name,stu[i].name)==0) delper=i;}

cout<<"您要删除的信息如下:"<

cout<

cout<<"您确定要删除吗?(y/n)"<

cin>>check;

ofstream outfile(“stuinfor.txt”);

if(check==’y’||’Y’)

{

for(int i=delper;i

num–;

for(int i=0;i

cout<<"信息已删除!"<

infile.close();

outfile.close();

}

void change(student *stu,char *name,int num)

{int change;char check,nam[10];

int cn,cd;

ifstream infile(“stuinfor.txt”);

for(int i=0;i

{

infile>>stu[i].name>>stu[i].num>>stu[i].dormin;

if(strcmp(name,stu[i].name)==0) change=i;

}

cout<<"您要修改的信息如下:"<

cout<

cout<<"您确定要修改吗?(y/n)"<

cin>>check;

ofstream outfile(“stuinfor.txt”);

if(check==’y’||’Y’)

{

cout<<"请依次输入姓名 学号 宿舍号"<

cin>>nam>>cn>>cd;

strcpy(stu[change].name,nam);stu[change].num=cn;stu[change].dormin=cd;

for(int i=0;i

outfile<

cout<<"信息已修改!"<

infile.close();

outfile.close();

}

void search(student *stu,int low,int high,int check)

{int mid=(low+high)/2;

ifstream infile(“sorted_infor.txt”);

if(!infile) cerr<<"文件打开失败!"<

else

{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<<"您要查询的信息如下:"<

cout<

else cout<<"未能查到您所要查询信息!"<

}