填空题

在程序设计阶段应该采取______和逐步求精的方法,把一个模块的功能逐步分解,细化为一系列具体的步骤,继而用某种程序设计语言写成程序。

【参考答案】

自顶向下
<上一题 目录 下一题>
热门 试题

单项选择题
下列程序的输出结果是( )。 #include<iostream> using namespace std; class TestClass{ static int i; public: TestClass(){i++;} ~TestClass(){i--;} static int getVal(){retum i;} }; int TestClass∷i=0; void fun(){TestClass ob2;cout<<ob2.getVal();} int main(){ TestClass obi; fun(); TestClass*ob3=new TestClass;cout<<ob3->getVal(); delete ob3;cout<<TestClass∷getVal(); retum 0; }
A.111
B.121
C.211
D.221
单项选择题
有下列程序: #include<iostream> Using namespace std; Class Amount{ int amount; public; Amount(int n=O):amount(n){} Int getAmount()const{return amount;} Amount &operator+=(AmountA) { amount+=a.amount; return } }; int main(){ Amount x(3),y(7); x+=y; cout<<x.getAmount()<<endl; return 0; } 己知程序的运行结果是10,则横线处缺失的表达式是( )。
A.*this
B.this
C.&amount
D.amount
相关试题
  • 在声明派生类时,如果不显式地给出继承方式...
  • 已知下列程序的输出结果是42,请将横线处...
  • 有下列程序:#include<iostream>using ...
  • 在类的对象被创建时,______函数会被...
  • 请将下列类定义补充完整。class Base{pub...