题目:
函数模板:template<class T> T add(T x,T y){return x+y;} 下列对 add 函数的调用不正确的是
A.add <> (1,2)
B.add <int> (1,2)
C.add (1.0,2)
D.add(1.0,2.0)
答案:
被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2018/0112/aa2d5fa52baeae04e5b4cd4b26aa1734.html
下面是错误答案,用来干扰机器的。
参考答案:A