📄 mystudentdoc.h
字号:
// MyStudentDoc.h : interface of the CMyStudentDoc class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_MYSTUDENTDOC_H__30D33CB8_66B5_4E18_BA5A_2884B6FEA6CA__INCLUDED_)
#define AFX_MYSTUDENTDOC_H__30D33CB8_66B5_4E18_BA5A_2884B6FEA6CA__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "MyStudentSet.h"
#include "ClassAnalysis.h"
#include "SetDialog.h" // Added by ClassView
#include "Registry.h"
class CMyStudentDoc : public CDocument
{
public: // create from serialization only//已更改。原为保护成员
CMyStudentDoc();
DECLARE_DYNCREATE(CMyStudentDoc)
// Attributes
public:
CMyStudentSet m_myStudentSet;
// Operations
public:
CObArray m_classanalysis;//存放班级成绩的分析数据
int m_classnumber; // 数据库中班级的个数
float m_passrate;
float m_average;
int m_90_100;
int m_80_89;
int m_70_79;
int m_60_69;
int m_50_59;
int m_50;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMyStudentDoc)
public:
virtual BOOL OnNewDocument();
virtual void Serialize(CArchive& ar);
//}}AFX_VIRTUAL
// Implementation
public:
void ResetClassInfo();
CSetDialog m_setdialog;
float m_endterm_coef;
float m_midterm_coef;
float m_normal_coef;
int m_recordcount;
void SetCurrentClassData(CString classname);
void AnalysisData();
void GetClassInfo();
void FigureOutFinal();
virtual ~CMyStudentDoc();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
public:
CString m_database_path;
void OpenDataBaseFile();
CString m_database;
void SetDataBase(CString &dsn_name,CString &dsn_path);
int m_loaded; //数据库是否加载成功0,1
//{{AFX_MSG(CMyStudentDoc)
afx_msg void OnEditSet();
afx_msg void OnEditRecal();
afx_msg void OnFileOpendatabase();
afx_msg void OnFileSave();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
void OutputHTML(CArchive& ar);//输出到HTML文件
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
# endif // !defined(AFX_MYSTUDENTDOC_H__30D33CB8_66B5_4E18_BA5A_2884B6FEA6CA__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -