填空题
已知程序的结果为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;
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
如果类B继承了类A,则称类A为类B的基类,类B称为类A的 【10】 。
点击查看答案&解析
填空题
将x+y中的+运算符用友元函数重载应写为 【11】 。
点击查看答案&解析
相关试题
下列程序段的输出结果是 【15】 。cout...