单项选择题
若有以下程序:
#include <iostream>
using namespace std;
class Base
int x;
protected:
int y;
public:
int z;
void setx(int i)
x=i;
int getx ( )
return x;
;
class Inherit : private Base
private:
int m;
public:
int p;
void setvalue(int a,int b,int c, int d)
setx(
A.;
&n
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
下面几种调试方法中,不适合调试大规模程序的是( )。
A.强行排错法
B.回溯法
C.原因排除法
D.静态调试
点击查看答案&解析
单项选择题
一个满二叉树其深度为4,则其叶子节点的个数为( )。
A.8
B.16
C.32
D.4
点击查看答案&解析
相关试题
以下函数实现的功能是 ( )。 void fu...
以下程序段有( )处错误。 #include ...
下列函数中,哪项是正确的递归函数( )。
类 Contain 的定义如下: class Contai...
有以下程序: #include <iostream> u...