类模板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
上一篇:在遗传咨询中,关于X连锁隐性遗传病的预期风险率,下列描述正确的是
下一篇:Directions: You are to write in 100-120 words on the topic “The Importance of Cultivating a Hobby”. You should base your composition on the outline given in Chinese below:1. 现代社会的生活节奏使人们承受各种压力;2. 培养兴趣爱好可以缓解压力、有益身心健康;3. 谈谈你的看法。