填空题
以下程序的输出结果是
[11]
。 #include<iostream. h> void main() { int *p; p=new int; *p=200; cout<<*p; delete p; }
【参考答案】
200
点击查看答案
<上一题
目录
下一题>
热门
试题
填空题
cout<<’ n’还可以表示为 [14] ,cout. width(10)还可表示为 [15] 。
点击查看答案
填空题
分析以下程序的执行结果 [12] 。#include <iostream. h>class S{int A[10];public:int &operator () (int);};int &S: :operator() (int x) {return A[x];}void main() {S a;int i,j;for (i=0; i<10; i++)a(i)=i*2;for (i=0; i<10; i++)cout<<a(i)<< ;cout<<end1; }
点击查看答案
相关试题
下面关于对象概念的描述中错误的是()。
当将E-R模型转换为关系模型时,对于两实体...
以下关于外码和相应的主码之间的关系,正确...
可行性研究要进行一次 _______ 需...
输出流文件中的当前位置可以由下面哪个成员...