以下程序的执行结果是( )。#nclude <iostream.h>template <class T>T max(T x, T y){ retum(x>y?x:y);}void main(){ cout<<max(2,5)<<", "<

admin2009-01-15  37

问题 以下程序的执行结果是(    )。#nclude <iostream.h>template <class T>T max(T x, T y){    retum(x>y?x:y);}void main(){    cout<<max(2,5)<<", "<<max(3.5,2.8)<<end1;}

选项 A、5,5.0
B、3.8
C、5,3.5
D、3.5,5

答案4

解析
转载请注明原文地址:https://kaotiyun.com/show/pakp777K
0

最新回复(0)