单项选择题

某类中有一个无参且无返回值的常成员函数Show,则正确的Show函数原型是()。

A.const void Show( );
B.void const Show( );
C.void Show( )const;
D.void Show(const);

<上一题 目录 下一题>
热门 试题

单项选择题
有如下程序: #include<iostream> using namespace std; class CD{ public: ~CD( ){cout<<C;} private: char name[80]; }; int main( ){CD a,*b,d[2];return 0;} 运行时的输出结果是()。

A.CCCC
B.CCC
C.CC
D.C

单项选择题
有如下语句序列:char str[10];cin>>str; 当从键盘输入 I love this game 时,str中的字符串是()。

A."I love this game"
B."I love this"
C."I love"
D."I"

相关试题
  • 有如下程序: #include using namespac...
  • 有如下程序: #include using namespac...
  • 有如下程序: #include using namespac...
  • 有如下程序: #include #include usin...
  • 有如下程序: #include<iostream> #i...