填空题 C++ 题号 #153308 如果要把返回值为void的函数A声明为类B的友元函数,则应在类B的定义中加入的语句是【9】 。 收起答案及解析 进入在线模考 参考答案 暂无 答案解析 friend void A(): 你可能感兴趣的试题 1 如果类B继承了类A,则称类A为类B的基类,类B称为类A的【10】 。 查看解析 → 2 将x+y中的+运算符用友元函数重载应写为【11】 。 查看解析 → 3 已知程序的结果为123,请填空 #include template class A { public: Tx,y,z: void display(){cout <<<< void main() { al; 【12】 【13】 【14】 al.display(); } 查看解析 →