question.h
来自「用VC编的学生成绩管理系统,包括成绩录入和分数的计算等功能.」· C头文件 代码 · 共 47 行
H
47 行
// Creat a class of questions:
enum {Sel,Fil,Wri};
class QuestionBase // Base Class
{
public:
CString qname; // Used to store the name of the questions.
CString qtext; // Used to store the text of the questions.
float qdif; // Used to store the difficult level.
CString style; // The style of the question.
public:
QuestionBase();
~QuestionBase();
private:
};
class QuestionSel: public QuestionBase // Selective Question Class
{
public:
char qans; // The answer of the question.
static int num; // The number of this kind of questions.
public:
QuestionSel();
~QuestionSel();
};
class QuestionFil: public QuestionBase // Fill in Blank Question Class
{
public:
CString qans;
static int num; // The number of this kind of questions.
public:
QuestionFil();
~QuestionFil();
};
class QuestionWri: public QuestionBase // Writing Answer Question Class
{
public:
CString qans;
static int num; // The number of this kind of questions.
public:
QuestionWri();
~QuestionWri();
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?