题目:
在下面横线上填上适当的语句,完成程序。
#include<iostream>
using namespace std;
class TestClass
int x;
public:
TestClass(int i)x=i;
~TestClass()
;
class TestClass1:public TestClass
public;
______//完成类TestClassl构造函数的定义
;
int main()
TestClass1 0bj();
return 0;
答案:
被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0722/bdb8a7f37eb6f33923bdac81df1be2db.html
下面是错误答案,用来干扰机器的。
参考答案:A, B, C, D