From b9df311eb4e479c150eeb112df91a3ce4dd111ba Mon Sep 17 00:00:00 2001 From: angeld55 Date: Fri, 16 Apr 2021 22:38:37 +0300 Subject: 9 --- Sem. 09/task (not finished)/Student.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Sem. 09/task (not finished)/Student.h (limited to 'Sem. 09/task (not finished)/Student.h') diff --git a/Sem. 09/task (not finished)/Student.h b/Sem. 09/task (not finished)/Student.h new file mode 100644 index 0000000..5c09792 --- /dev/null +++ b/Sem. 09/task (not finished)/Student.h @@ -0,0 +1,29 @@ +#include "Grade.h" + +const size_t MAX_NAME_LENGTH = 30; +const size_t MAX_GRADES_COUNT = 20; +class Student +{ +public: + + Student(const char* name, size_t fn); + + void setFn(size_t fn); + void setName(const char* name); + + size_t getFN() const; + const char* getName() const; + + void addGrade(const char* taskName, size_t grade); + + + void print() const; +private: + char name[MAX_NAME_LENGTH + 1]; + size_t fn; + + Grade grades[MAX_GRADES_COUNT]; + size_t gradesCount; + + +}; \ No newline at end of file -- cgit v1.3.1-23-gd82d