?? studentlist.h
字號:
#include <cmath>
#include "clsStudent.h"
class StudentList {
private:
Student2* m_pStudent;
int m_nStudent;
public:
StudentList(Student2* pStudent, int nStudent);
StudentList();
StudentList(const StudentList& studlist);
StudentList& operator=(const StudentList& studlist);
~StudentList();
void SetStudentList(Student2* pStudent, int nStudent);
Student2* GetpStudent() const; // 取數組指針
int GetnStudent(); // 取學生人數
float Average(int period); // 求平均分數
float StdDev(int period); // 求標準偏差
int CountA(int period); // 求優秀人數
int CountE(int period); // 求掛科人數
Student2 FindMax(int period); // 找到最高分得主
void BubSort(int period); // 按分數高→低排序
private:
void swap(Student2& a, Student2& b);
};
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -