Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 09 / task1 (not finished) / UniCourse.h
diff options
context:
space:
mode:
Commit00b22d8682827a6e8d0098437559537a04236aa4 (patch)
Author
 angeld55 <angel_dimitriev@abv.bg>
2021-04-26 01:11:36 +0300
Committer
 angeld55 <angel_dimitriev@abv.bg>
2021-04-26 01:11:36 +0300
Filesbbb283de3d85882b257bb2bb2acb39e18dc991b8 /Sem. 09/task1 (not finished)/UniCourse.h
Object-oriented_programming_FMI-00b22d8682827a6e8d0098437559537a04236aa4.tar
Object-oriented_programming_FMI-00b22d8682827a6e8d0098437559537a04236aa4.tar.gz
Object-oriented_programming_FMI-00b22d8682827a6e8d0098437559537a04236aa4.zip
Parent7ae68dd627bdb2681dc8ddf7c35e415fad8ea814 (diff)
sem 9/10
1 files changed, 35 insertions, 0 deletions
-rw-r--r--Sem. 09/task1 (not finished)/UniCourse.h35
diff --git a/Sem. 09/task1 (not finished)/UniCourse.h b/Sem. 09/task1 (not finished)/UniCourse.h
new file mode 100644
index 0000000..fde1518
--- /dev/null
+++ b/Sem. 09/task1 (not finished)/UniCourse.h
@@ -0,0 +1,35 @@
+#include "Student.h"
+
+class UniCourse
+{
+ char* lecturerName;
+ char* assistantsNames[3];
+
+ Student** students;
+ size_t capacity;
+ size_t size;
+
+ void copyFrom(const UniCourse& other);
+ void free();
+
+ size_t findStudentByFn(size_t fn);
+
+ void resize();
+
+public:
+ UniCourse(const char* lecturerName);
+ UniCourse(const char* lecturerName, const char* assistant1Name);
+ UniCourse(const char* lecturerName, const char* assistant1Name, const char* assistant2Name);
+ UniCourse(const char* lecturerName, const char* assistant1Name, const char* assistant2Name, const char* assistant3Name);
+
+
+ UniCourse(const UniCourse& other);
+ UniCourse& operator=(const UniCourse& other);
+ ~UniCourse();
+
+ void addStudent(const char* name, size_t fn);
+ void removeStudent(size_t fn);
+
+ void print();
+
+}; \ No newline at end of file