sushe.h

来自「实现学生宿舍信息的基本管理」· C头文件 代码 · 共 46 行

H
46
字号
// sushe.h: interface for the sushe class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_SUSHE_H__209123D1_03DC_43B7_924F_440D6DA4DB75__INCLUDED_)
#define AFX_SUSHE_H__209123D1_03DC_43B7_924F_440D6DA4DB75__INCLUDED_

#include "iostream.h"
#include "man.h"
#include "woman.h"
#include "iostream.h"
#include "stdlib.h"//system("cls")
const int maxx=4;//学生宿舍最多容纳人数
const int maxm=100;//最多的男生入住人数
const int maxw=100;//最多的女生入住人数

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class sushe  
{
	man m[maxm];
	woman w[maxw];
	static int nanshu;
	static int nvshu;
	int fangjian[51];//房间总共50间,男生宿舍为1~25号,女生宿舍为26~50号
	int number;
	char a;
public:
	sushe();

	void ruzhu();//入住函数
		
	void tuichu();//退出宿舍函数
	
	void show();//显示宿舍成员函数

	virtual ~sushe();

};



#endif // !defined(AFX_SUSHE_H__209123D1_03DC_43B7_924F_440D6DA4DB75__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?