主观

在下面程序的下划线处填上正确的数据类型,保证程序具有如下输出结果:

0

17

17,17,17

源程序如下:

#include ﹤ iostream ﹥

using namespace std;

class base{

public:

______________num;

base ( ) { }

};

int base::num = 0;

void main( ){

cout ﹤﹤ base::num ﹤﹤ endl;

_______________* p=&base::num;

*p=17;

cout ﹤﹤ base::num ﹤﹤ end1;

base a,b;

cout ﹤﹤ *p﹤﹤"," ﹤﹤ a. num ﹤﹤ "," ﹤﹤b. num;

}

参考答案
您可能感兴趣的试题
¥

订单号:

遇到问题请联系在线客服

订单号:

遇到问题请联系在线客服