填空题 将x+y中的+运算符用友元函数重载应写为{{U}} 【11】 {{/U}}。
  • 1、
【正确答案】 1、operator+(x,y)    
【答案解析】[解析] C++中用成员函数重载x+y为x.operator +(y);,用友元函数重载x+y为operator+(x,y)。