C++ STL自定义类和比较规则 // HashTable ->无法测试,改测set吧 #include<set> #include<map> #include<unordered_set> #include<unordered_map> class DellCom{ public: int type; int price; public: DellCom(int name,int price):type(name),price(price){ } ~DellCom