当前位置: X题卡 > 所有题目 > 题目详情

有如下函数模板定义: template<class t> T func(Tx,Ty){return x*x+y*y;} 在下列对func的调用中,错误的是()

查看本题答案

你可能感兴趣的试题

函数形参  函数实参  模板形参  模板实参  
func(3,5);  func(3.0,5.5);  func(3,5.5); fune<int>(3,5.5);  
函数形参  函数实参  模板形参  模板实参  
函数形参  函数实参  模板形参  模板实参  
func(3,5);  func<>(3,5);  func(3,5.5);  func<int>(3,5.5);  
func(3,5);  func<>(3,5);  func(3,5.5);  func<int>(3,5.5);  
func(3,5);  func(3.0,5.5);  func(3,5.5);  fune<int>(3,5.5);  
fimc(3,5);  func(3.0,5.5);  func(3,5.5);  func<int>(3,5.5);  
func(3,5);  func(3.0,5.5);  func(3,5.5);  fune<int>(3,5.5);  
func(3,5);  func<>(3,5);  func(3,5.5);  func<int>(3,5.5);  
func(3,5);  func(3.0,5.5);  func(3,5.5);  func<int>(3,5.5);  
函数形参  函数实参  模板形参  模板实参  
func(3,5);  func<>(3,5);  func(3,5.5);  func<int> (3,5.5);  
template<class Q>  template<class Q> QF(Q{return Q-x;} QF(Q{return x+x;}  template<class T>  template<class T> TF(T{return x*x;} boolP(T{return X>1;)  
func(3,5);  func(3.0,5.5);  func(3,5.5);  func<int>(3,5.5);  
fimc(3,5);  func(3.0,5.5);  func(3,5.5);  func<int>(3,5.5);  
func(3,5);  func(3.0,5.5);  func(3,5.5);  func<int>(3,5.5);  
func(3,5);  func(3.0,5.5);  func(3,5.5);  func<int>(3,5.5);  
template<class Q > QF (Q {return Q +x;}  template<class Q > QF (Q {returnx/x;}  template <class T > T F(T {return x*x;}  template <class T> bool F (T {return x>1;}  
func(3,5);  func<>(3,5);  func(3,5.5);  func<int> (3,5.5);  

热门试题

更多