您当前的位置: 首页 >  杨林伟 c++

38 C++ - 函数调用符号()重载

杨林伟 发布时间:2019-10-08 17:35:26 ,浏览量:1

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             
关注
打赏
1688896170
查看更多评论
0.0401s