填空题
下列程序的输出结果是______。
#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)<<’,’<<fun(3.14F,6.28F) <<end1;
return 0;
【参考答案】
C,C.AD
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
设在主函数中有以下定义和函数调用语句,且fun()函数为void类型,请写出fun()函数的首部______。 int main() double s[10][22]; int n: ... fun (s): ... return 0;
点击查看答案&解析
填空题
在下面横线上填上适当的语句,完成程序。 #include <iostream> using namespace std; class Base int x: public: Base (int i)x=i; ~Base() ; class Derived : public Base public: ______ 完成类Derive构造函数的定义 ; int main ( Derived Obi; return 0; 在横线外应填入的语句是______。
点击查看答案
相关试题
下面程序的输出是: **********...