网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
Operator overloading operator+= which appends another String instance into current String
instance.
参考答案
更多 “ Operator overloading operator+= which appends another String instance into current Stringinstance. ” 相关考题
考题
如果表达式x*y+2中,“*”是作为友元函数重载的,“+”是作为友元函数重载的,则该表达式还可为A.operator+(operator*(x,y),z)B.x.operator+(operator*(x,y),z)C.y.operator*(operator+(x,y),z)D.x.operator+(operator*(x,y))
考题
如果表达式x * y+z中,“*”是作为友元函数重载的,“+”是作为成员函数重载的,则该表达式还可为A.operator+(operator * (x, y) ,Z)B.x. operator+(operator * (x, y) ,z)C.y. operator * (operator+(x, y) ,z)D.x. operator+(operator * (x, y) )
考题
如果表达式x * y+z中,“*”是作为友元函数重载的,“+”是作为成员函数重载的,则该表达式还可为 ( )。A.operator+(operator$(X,Y),z)B.x.operator+(operator * (x,y),Z)C.Y.operator * (operator+(x,Y),z)D.x.operator+(operator{(X,Y))
考题
如果表达式--X+y中,--是作为成员函数重载的,+是作为成员函数重载的,则该表达式还可为A.y.operator+(x.operator--(0))B.y,operator+(x.operator--( ))C.y.operator+(operator--t(x,0))D.operator+(x.operator- -t( ))
考题
如果表达式x*y+z中,\"*\"是作为友元函数重载的,\"+\"是作为友元函数重载的,则该表达式还可为A.operator+( operator*(x, y),z)
B.x.operator+( operator*(x, y),z)
C.y.operator*( operator+(x, y),z)
D.x.operator+( operator*(x, y))
考题
下面哪个对类C中的+=运算符的重载是最合适的?A.C C::operator +=(const C c);B.C C::operator +=(const C c);C.C C::operator +=(C c);D.C C::operator +=(const C c);
考题
operator运算符就是运算符重载函数的函数名,比如:operator+就是函数名。()
热门标签
最新试卷