题目内容

设程序如下: #include<iostream> using namespace std; int main() { int **p,*q,r=10; q=&r; p=&q; cout<<**p+1<<endl; return 0; } 以上程序的输出结果是______。

A. P的地址
B. r的地址
C. 11
D. 运行错误

查看答案
更多问题

有如下程序: #include<iostream> using namespace std; class Base{ protected: Base(){cout<<"Base";} Base(char c){cout<<c;} }; class Derived:public Base{ public: Derived(char c){cout<<c;} }; int main(){ Derived d("Derived"); return 0; } 执行这个程序屏幕上将显示输出______。

A. Derived
B. DerivedBase
C. BaseDerived
DerivedDerived

有如下程序: #include<iostream> using namespace std; int main() { cout.fill("*"); cout.width(6); cout.fill("#"); cout<<888<<endl; return 0; } 的执行结果是______。

A. ###888
B. 888###
C. ***888
D. 888***

下面的符号中可以用作C++标识符的是______。

A. 3test
B. fcc~other
C. else
D. radius

(2010年下半年)以下关于.NET架构和J2EE架构的叙述中,(29)是正确的。

A. NET只适用于Windows操作系统平台上的软件开发
B. J2EE只适用于非Windows操作系统平台上的软件开发
C. NET不支持Java语言编程
D. J2EE中的.ASENET采用编译方式运行

答案查题题库