Welcome![Sign In][Sign Up]
Location:
Search - water2.rar

Search list

[Otherwater2

Description: 用c++的多态性编写一个简单的管理程序,处理的信息包括教师、学生、职员等三类对象。程序应具有适当的数据结构。程序的功能是管理学生,教师,职工信息,要求具有添加,删除,查询,排序的功能,在输出时注意综合应用所学知识灵活应用虚函数。 要求: 1. 在一个容器中存储不同类型的对象,要求数据结构中不能有类型判断字段。 2. 利用继承和虚函数,使得程序容易扩展,如输出对象信息。 3. 利用代理或者句柄实现引用计数和写时复制。-polymorphism with a simple preparation of the management procedures, the processing of information, including teachers, students and other staff the three targets. Procedures should have the appropriate data structure. Procedures function is the management of students, teachers, staff information, requiring add, delete, query, sort, in which the function to output integrated application knowledge to use virtual function. Requirements : 1. In a storage containers of different types of targets, data structure types can be judged field. 2. The use of inheritance and virtual function, making procedures easier to expand, as output target information. 3. Agents use or handle achieve reference counting and write copy.
Platform: | Size: 7168 | Author: 郭娜 | Hits:

CodeBus www.codebus.net