假设有函数模板声明如下,则选项中不正确的是
template
Tadd(T a,T b,T c){return a+b+c;)
假设有函数模板声明如下,则选项中不正确的是
template
Tadd(T a,T b,T c){return a+b+c;)
A、add('a', 'b', 'c');
B、add(10,100,1000);
C、add("a", "b", "c”);
D、add(0.1,0.01,0.001);
【正确答案】:C
Top