类模板templateclassX({…};,其中友元函数f对特定类型T(如int),使函数f(X&)成为X模板类的友元,则其说明应为( )。
A.friend void f( );
B.friend void f(X&);
C.friend void A::f( );
D.friend void C(T);
正确答案是B
扫描二维码免费使用微信小程序搜题/刷题/查看解析。
版权声明:本文由翰林刷题小程序授权发布,如需转载请注明出处。
本文链接:https://doc.20230611.cn/post/240934.html
上一篇:Protecting the fewHow we live our lives affects the environment. The environment is all the things around you. All across earth, humans are ____1____the environment in small and large ways. We cut done trees to build houses. We plow fields to ___
下一篇:饼状图