从零开始开发亿级流量小红书项目实战
class Maker{public: Maker(string name, int age) { this->name = name; this->age = age; } // 模版函数局限性 解决方案2 重载运算符 (最优) // 重载>运算符 bool operator>(Maker &b) { if (this->age > b.age) { return true; }else{ return false; } 作者:巍啊itdaxue https://www.bilibili.com/read/cv25152945 出处:bilibili