单项选择题

下列选项中不符合良好程序设计风格的是

A.源程序要文档化
B.数据说明的次序要规范化
C.避免滥用goto语句
D.模块设计要保证高耦合、高内聚
<上一题 目录 下一题>
热门 试题

单项选择题
有如下程序: #include <iostream> using namespace std; int main( ) int*P; *P=9; cout<< The value at P: <<*P: return 0; 编译运行程序将出现的情况是
A.编译时出现语法错误,不能生成可执行文件
B.运行时一定输出:The value at P:9
C.运行时一定输出:The value at P:*9
D.运行时有可能出错
单项选择题
有如下程序: #include <iostream> using namespace std; using namespace std; class Base public: void fun( )cout<< Base::fun <<endl: ; class Derived:public Base public: void fun( ) eout<< Derived::fun <<endl: ; int main( ) Derived d; d.fun( ); return 0; 已知其执行后的输出结果为: Base::fun Derived::fun 则程序中下画线处应填入的语句是
A.Base.fun( );
B.Base::fun( );
C.Base->fun( );
D.fun( );
相关试题
  • 已知一个函数模板定义为 template <type...
  • 创建对象数组时,对数组的每一个元素都将调...
  • 有如下程序: #include <iostream> u...
  • 已知递归函数f的定义如下: int f(int ...
  • 已知下列程序的输出结果是42,请将下画线...