下列程序的执行结果是( )。
#include<iostream.h>
#include<stdlib.h>
class TestClass

public:
intx,y;
TestClass( )x=y=0;
TestClass(int a,int b)x=a;y=b;
void disp( )

cout<<"X"="<<X<<",y="<<y<<endl;

;
void main( )

TestClass sl(2,3);
s1.disp( );

题库:计算机等级考试 类型:最佳选择题 时间:2017-07-03 15:59:31 免费下载:《单选题》Word试卷

下列程序的执行结果是( )。
#include<iostream.h>
#include<stdlib.h>
class TestClass

public:
intx,y;
TestClass( )x=y=0;
TestClass(int a,int b)x=a;y=b;
void disp( )

cout<<"X"="<<X<<",y="<<y<<endl;

;
void main( )

TestClass sl(2,3);
s1.disp( );

A.x=2,y=2
B.x=3,y=3
C.x=2,y=3
D.x=3,y=2

下列程序的执行结果是(  )。   #include<iostream.h>   #include<stdlib.h>   class TestClass

本题关键词:行为结果,行为结果评价,竣工结算程序,行政诉讼程序,结果,序列关系,空间序列,执行过程组,程序,结果均;

微信扫码获取答案解析
下载APP查看答案解析