ぼるじょあがC/C++の宿題を片づけますYO! 48代目
■ このスレッドは過去ログ倉庫に格納されています
0678デフォルトの名無しさん
2005/08/02(火) 02:21:19なんか問題文がおかしいような気もするが、
とりあえずそれなりに仕様を満たすように書いてみた。
// --- student.h -------------------------------
#ifndef __student_h__
#define __student_h__
#ifndef UINT
#typedef unsigned int UINT;
#endif
#define MAX_DAYS 15
class student{
public:
student();
void Attend();
void Absent();
UINT GetCount();
UINT GetScore();
char GetGrade();
private:
UINT m_Attendance; // days attended
UINT m_Absence; // days absented
UINT m_Score; // scoring point
};
#endif //__student_h__
■ このスレッドは過去ログ倉庫に格納されています