问题
单项选择题
将运算符“+”重载为非成员函数,下列原型声明中,错误的是
A.MyClock operator + (MyClock,long);
B.MyClock operator + (MyClock,MyClock);
C.MyClock operator + (long,long);
D.MyClock operator + (long,MyClock);
答案
参考答案:C
将运算符“+”重载为非成员函数,下列原型声明中,错误的是
A.MyClock operator + (MyClock,long);
B.MyClock operator + (MyClock,MyClock);
C.MyClock operator + (long,long);
D.MyClock operator + (long,MyClock);
参考答案:C