📄 stusysdlg.h
字号:
// StuSysDlg.h : header file
//
#if !defined(AFX_STUSYSDLG_H__2609B0D0_3536_443E_A6B3_A8A57EE6438E__INCLUDED_)
#define AFX_STUSYSDLG_H__2609B0D0_3536_443E_A6B3_A8A57EE6438E__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CStuSysDlg dialog
//★★★★★★★★★★★★★★★★★★★★★★★
#include "SutInfo.h"
#include "Course.h"
#include "BaseInfo.h"
#include "fstream.h"
#define MAXSTU 100//学生的最多数目
#define MAXCOURSE 30//课程的最多数目
//★★★★★★★★★★★★★★★★★★★★★★★
class CStuSysDlg : public CDialog
{
// Construction
public:
void Collision( int &index, int c);
int Hash( int );
CStuSysDlg(CWnd* pParent = NULL); // standard constructor
//★★★★★★★★★★★★★★★★★★★★★★★
CSutInfo m_Student[MAXSTU];
//定义对象数组存储输入的学生信息
//为一个hash表
CBaseInfo m_BaseInfo;
CCourse m_Course[MAXCOURSE];
int CurrentIndex;
//存储课程信息
//★★★★★★★★★★★★★★★★★★★★★★★
// Dialog Data
//{{AFX_DATA(CStuSysDlg)
enum { IDD = IDD_STUSYS_DIALOG };
CListCtrl m_CourseList;
CListCtrl m_StuList;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CStuSysDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CStuSysDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnAddnote();
afx_msg void OnShow();
afx_msg void OnAddcourse();
afx_msg void OnCourseShow();
afx_msg void OnStuDelete();
afx_msg void OnCourseDelete();
afx_msg void OnStuEdit();
afx_msg void OnStuSave();
afx_msg void OnStuLoad();
afx_msg void OnCourseSave();
afx_msg void OnCourseLoad();
afx_msg void OnCourseEdit();
afx_msg void OnScoreAdd();
afx_msg void OnDblclkList1(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnPeople();
afx_msg void OnCourseAvescore();
afx_msg void OnSearchNum();
afx_msg void OnSearchName();
afx_msg void OnSearchTeacher();
afx_msg void OnSearchGrade();
afx_msg void OnSortTotal();
afx_msg void OnSortNum();
afx_msg void OnSortScore();
afx_msg void OnSortAge();
afx_msg void OnSearchSex();
afx_msg void OnVersionInfo();
afx_msg void OnHelp();
afx_msg int OnVKeyToItem(UINT nKey, CListBox* pListBox, UINT nIndex);
afx_msg void OnCancelMode();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_STUSYSDLG_H__2609B0D0_3536_443E_A6B3_A8A57EE6438E__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -