函数模板:template<class T> T add(T x,T y){retu
问题:
函数模板: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)
函数模板: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)