网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

如果表达式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+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中,++是作为友元函数重载的,/是作为成员函数重载的,则该表达式还可为A.(operator++(x)).operator/(y)B.(operator++(0)).operator/(y)C.operator/((operator++(x,0)),y)D.operator/((operator++(0)),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.(operator++(x) ) .operator/(y)B.(operator++(0) ) .operator/(y)C.operator/((operator++(x,0) ) ,y)D.operator/((operator++(0) ) ,y)

考题 如果表达式++x/y中,+ +是作为友元函数重载的,/是作为成员函数重载的,则该表达式还可为( )。A.(operator + +(x)).operator/(y)B.(operator + +(0)).operatr/(y)C.operator/((operator + + (x,0)),y)D.operator/((operator + + (0)),y)

考题 如果表达式++x/y中,++是作为友元函数重载的,/是作为成员函数重载的,则该表达式还可为( )。A.(operator++(x)).operator/(y)B.(operator++(0)).operatr/(y)C.operator/((operator++(x,0)),y)D.operator/((operator++(0)),y)

考题 如果在表达式++x/y中,“++”是作为友元函数重载的,…/”是作为成员函数重载的,则该表达式还可为( )。A.(operator++(x)).operator/(Y)B.(operator++(0)).operator/(Y)C.operator/((operator++(x,0)),Y)D.operator/((operator++(0)),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))