Home > Back-end >  The problem is how to do
The problem is how to do

Time:10-02

Design a template class SET, in the collection can hold different types of object; Then write a demo using SET to create and use the SET of integers, the SET of strings and collection of the STUDENT, the STUDENT class STUDENT is own design class type, including to STUDENT's STUDENT id, name, age, is don't wait for the description of the information and necessary actions, (hint: the elements in the collection is not allowed to repeat, and between elements is disorder)

CodePudding user response:

Can refer to the set of STL source design, the following links have STL source can see,
http://blog.csdn.net/hustyangju/article/details/24482097
  • Related