diff --git a/宿舍管理系统.cpp b/宿舍管理系统.cpp new file mode 100644 index 0000000..5c1b41c --- /dev/null +++ b/宿舍管理系统.cpp @@ -0,0 +1,43 @@ +#include +#include +#include + +// ѧ +class Student { +public: + std::string name; + int id; + // 캯 +}; + +// +class Dormitory { +public: + int roomNumber; + std::vector students; + // 캯 +}; + +// ϵͳ +class DormitoryManagementSystem { +private: + std::vector students; + std::vector dormitories; + +public: + void addStudent(const Student& student) { + students.push_back(student); + } + + void addDormitory(const Dormitory& dormitory) { + dormitories.push_back(dormitory); + } + + // ... +}; + +int main() { + DormitoryManagementSystem system; + // ѧ + return 0; +}