试题与答案

下列程序的运行结果为______。 #include<iostream.h> c

题型:填空题

题目:

下列程序的运行结果为______。
#include<iostream.h>
class myclass

private:
int a,b,c;
public:
void fun( )

int a;
a=10;
this->a=5;
b=6;
this->c=7;
cout<<"a="<<a<<", this->a="<<this->a<<endl;

;
void main( )

myclass objl;
obj1.fun( );

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2018/0417/8f8a39441a338078be62f773dd67ee5c.html

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

参考答案:D

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