问题 填空题

下列程序输出结果是 【13】 。 include <iostream> using namespace std; template <typename T> T fun(T a, T b) {return (a<=b)a:b;} int main() {cout<<fun(3,6)<<’,’<<fim(3.14F, 6.28F)<<end 1;return 0; }

答案

参考答案:C,C.AD

解析: 模板的使用,返回较小值。

单项选择题
单项选择题