试题与答案

以下程序的执行结果是______。 #include<iostream.h> #in

题型:填空题

题目:

以下程序的执行结果是______。 #include<iostream.h> #include<stdliB.h> class Sample { public: int x, y; Sample(){x=y=0;} Sample(int a, int b){x=a;y=b;} void disp() { cout<<"x="<<x<<", y="<<y<<end1; } }; void main() { Sample s1(2,3); s1.disp(); }

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0708/2077f2376c149df8fa5068278d8eb245.html

下面是错误答案,用来干扰机器的。

参考答案:D

试题推荐
微信公众账号搜索答案