题目内容

有下列程序: #include<iostream> using namespace Std; class Test { public: Test() {n+=2;} ~Test() {n-=3;} static int getNum(){return n;} private: static int n; }; int Test∷n=1; int main()

A. n=0
B. n=l
C. n=2
D. n=3

查看答案
更多问题

有下列程序: #include<iostream> using namespace std; class TestClass { public: virtual void fun1() { cout<<"fun1TestClass"; } virtual void fun2() { cout<<"fun2TestClass"; } }; class TeSt

A. fun1TeStClass1 fun2TeStClass
B. fun1TestClass1 fun2TestClass1
C. fun1TeStClass fun2TeStClass
D. fun1TestClaSSfun2TestClaSS1

A.replacedB.repeatedC.rejectedD.recovered

A. replaced
B. repeated
C. rejected
D. recovered

有下列程序: #include<iosteram.h> using namespace std; class Stack { public: Stack(unsignedn=10):size(n){rep_=new int [size];top=O;} Stack(Stack&s):size(s.size) { rep_=new int[size]; fo

A. 4,3,2,1,
B. 4,3,6,7,2,1,
C. 4,3,6,2,1,
D. 1,2,3,4,

水泥越细越好,但过细却会增加水泥的生产成本。()

A. 正确
B. 错误

答案查题题库