设有函数:T max(T x,T y){return x==y?x:y:},其中T为模板类型,下列相关分析正确的是
A.该函数模板有两个模板类型参数
B.T所规定的类型不可以是自定义类型
C.生成模板函数中的x和y的类型必须相同
D.生成模板函数的参数和返回值的类型可以不同
正确答案是C
扫描二维码免费使用微信小程序搜题/刷题/查看解析。
版权声明:本文由翰林刷题小程序授权发布,如需转载请注明出处。
本文链接:https://doc.20230611.cn/post/239398.html
上一篇:按信息的稳定性分类,可分成固定信息、()信息和流动信息。
下一篇:Vocabulary (10 points, 1 point each)Scan the following passage and find the words which have roughly the same meanings as those given below. The number in the bracket after each word definition refers to the number of paragraphs in which the target w