填空题
已知程序的结果为1 2 3,请填空。
#include<iostream.h>
template<class T>
class A
public:
T x,y,z;
void display() cout <<x << " " <<y << " " <<z;
;
void main()
A<int>a1;
【12】
【13】
【14】
a1.display();
【参考答案】
[12]a1.x=1;
[13]a1.y=2;
[14]a1.z=3;
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
下列程序段的输出结果是 【15】 。 cout<<fixed<<509.123456789<<endl;
点击查看答案&解析
填空题
将x+y中的+运算符用友元函数重载应写为 【11】 。
点击查看答案&解析
相关试题
以下程序的输出结果是 #include<iostrea...
下面程序的功能是把316表示为两个加数的...
下面程序段的运行结果是 void main() ...
设有数组定义:char array[]= China ...
函数fun的返回值是 fun(char*a,char*b...