若有函数模板定义如下
template <typename T>
T Max(T x,T y)
{
return (x>y?x:y);
}
则下列选顶中,错误的是
Max(20,10);
Max(3.5,5.2);
Max('x','y');
Max(20,"z");
发表评论