- 21
- 0
- 约9.98千字
- 约 25页
- 2017-01-06 发布于江西
- 举报
宿舍管理查询软件
任务:为宿舍管理人员编写一个宿舍管理查询软件, 程序设计要求:
(1)采用交互工作方式
(2)可以增加、删除、修改信息
(3)建立数据文件 ,数据文件按关键字(姓名、学号、房号)进行排序(选择、快速排序、堆排序等任选一种)
(4) 查询: a.按姓名查询 ;b.按学号查询 ;c按房号查询
(5) 打印任一查询结果(可以连续操作)
源代码:
#include iostream
#include fstream
#include conio.h
#include string
using namespace std;
class stud{ //类定义
public: //声明以下部分为共有的
stud();
void add_mes();
void change_mes();
void delete_mes();
void order();
void search();
void print();
private: //声明以下部分为私有的
int count;
int student_number[100];
string name[100];
int room
原创力文档

文档评论(0)