【正确答案】:friend void f(X
类模板“templateclassX{...};”,其中友元函数f对特定类型T(如int),使函数f(X&)成为X模板类的友元,
- 2024-07-27 17:11:53
- C+ + 程序设计(04737)
类模板“templateclassX{...};”,其中友元函数f对特定类型T(如int),使函数f(X&)成为X模板类的友元,则其说明应为_______。
【正确答案】:friend void f(X&):
【正确答案】:friend void f(X