填空题

源程序文档化要求程序应加注释。注释一般分为序言性注释和 【3】 。

【参考答案】

功能性注释
<上一题 目录 下一题>
热门 试题

填空题
在面向对象的程序设计中,用来请求对象执行某一处理或回答某些信息的要求称为 【2】 。
单项选择题
有如下程序:#include <iostream>using namespace std;class Baseprivate: char c;public: Base(char n) :c(n) ~Base() cout<<c; ;class Derived: public Baseprivate: char c; public: Derived(char n):Base(n+1),c(n) ~Derived() cout<<c; ;int main () Derived obj (’x’); return 0;执行上面的程序净输出
A.xy
B.yx
C.x
D.y
相关试题
  • 下面程序的输出结果是 【15】 。#incl...
  • 下列程序的输出结果是 【14】 。#incl...
  • 下面程序的输出结果为:Base:: fun,请...
  • C++中,设置虚基类的目的是 【11】 。
  • 多态性分为两类:编译时的多态性和 【10...