[原创]我们的学校
我们的学校:struct {
long double tuition;//学费
unsigned long unPassStudent;//补考学生数
unsigned long uglyGril;//恐龙人数
unsigned int handsomeBoy;//帅哥人数
unsigned char singlePerson;//单身学生人数
//boolean beautifulGril;//美女人数
};
我们的学校:
class CMySchool : public CPlaying, public CBTing, private CStudying
{
public:
bool FindBeautifulGirl() = 0;
short GetUglyGirlNumber() {return m_nGirl;}
short GetBeautifulGirlNumber() {return 0;}
long GetUglyBoyNumber() {return IaminSchool() ? 1 : 0;}
long GetHandsomeBoyNumber() {return m_nBoy-GetUglyBoyNumber();}
private:
vector <long double> fees;
vector <long double> exams;
map <CBoy, CGirl> lovejoke;
short m_nGirl;
long m_nBoy;
};