
【名词&注释】
改正错误(mistake correction)
[单选题]软件调试的目的是______。
A. 发现错误
B. 改正错误
C. 改善软件的性能
D. 挖掘软件的潜能
查看答案&解析
举一反三:
[单选题]有下列程序,在横线添加;includeusing namespace std;class TestClass{public:TestCla
有下列程序,在横线添加; #includeiostream> using namespace std; class TestClass { public: TestClass (int n){number=n;} ______//拷贝构造函数 ~TestClass(){} private: int number; }; TestClass fun(TestClass p) { TestClass temp(P); return temp; } int main() { TestClsss obj1(10),obj2(0); TestClass obj3(obj1); obj2=fun(obj3); return 0; }
A. TestClass(TestClass &other){number=other.number;}
B. TestClass(TestClass other){number=other.number;}
C. TestClass(TestClass &other){number;}
D. TestClass(&other){number=other.number;}
[单选题]下列关于this指针的叙述中,正确的是( )。
A. this指针是一个隐含指针,它隐含于类的成员函数中
B. 只有在使用this时,系统才会将对象的地址赋值给this
C. 类的友元函数也有this指针
D. this指针表示了成员函数当前操作的数据所属的对象
[单选题]下面说法不正确的是 ( )
A. Java中线程是抢占式的
B. Java中线程是分时的
C. Java中的线程可以共享数据
D. Java中的线程可以共享代码
本文链接:https://www.zhukaozhuanjia.com/download/4jxkxj.html