managestudent.h

来自「大二时做的课程设计」· C头文件 代码 · 共 35 行

H
35
字号
// ManageStudent.h: interface for the CManageStudent class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_MANAGESTUDENT_H__431592BD_68F5_4479_874D_5569466A39ED__INCLUDED_)
#define AFX_MANAGESTUDENT_H__431592BD_68F5_4479_874D_5569466A39ED__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <string>
#include <vector>
#include "Student.h"
using namespace std;
class CManageStudent{
protected:
	static vector<CStudent> data;//存放学生原始成绩
	void OnBrower();//浏览数据
	void OnFind();//查找数据
	void OnInvalidateInput(char*);//输入错误提示
	void OnAddData();//添加数据
	bool OnSave();//保存
	CManageStudent*parent;
public:
	static string title[8];//课程名称
	static int wid[8];//打印宽度
	CManageStudent(CManageStudent*p=0):parent(p){}
	bool InitialData();//读入数据到内存
	virtual void ShowMenu();//显示菜单
	virtual void DoEvent(int ID);//响应用户输入
};


#endif // !defined(AFX_MANAGESTUDENT_H__431592BD_68F5_4479_874D_5569466A39ED__INCLUDED_)

⌨️ 快捷键说明

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