💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、豆包、星火、月之暗面及文生图、文生视频 广告
~~~ class Complex{ public: int Add(int x,int y){ return x + y; } int operator()(int x,int y){ return x + y; } }; void test01(){ Complex complex; cout << complex.Add(10,20) << endl; //对象当做函数来调用 cout << complex(10, 20) << endl; } ~~~