下列程序执行结果是include<iostream.h>class A{ public:int a;A():a(10){tout<<a<<endl;}};void main(){ A obj1;A obj2(obj1);cout<<" "<<obj2.a<<endl;}
相似题目
-
有如下程序: inClude<iostream> using namespaCe std: Class CD{ publiC: ~CD{Cout<<’C’:} private: Char name[80]; }; int main{ CD a,*b,d[2]; return 0; 执行这个程序的输出结果是()。
-
下列程序的输出结果是inClUde<iostream.h>iht b=2;int funC (int*a) { b+=*a;return(b);}void m
-
有如下程序: include<iostream> using namespace std; class MyClass{ public: MyClass{cout<<’A’;} MyClass(char C.{cout<<C;} ~MyClass{cout<<’B’;} }; int main{ MyClass pl,+p2; p2=new MyClass(’X’); delete p2; return 0; } 执行这个程序的输出结果是()。
-
下列程序的运行结果为()。include<iostream.h>void main(){int a=2;int b=a+1;cout<<a/b<<endl;}
-
下列程序的运行结果为 include<iostream.h>void print(double a){cout<<++a;} void print(int a
-
下面程序的运行结果是()。 include<iostream.h
-
下列程序的执行结果为include<iostream.h>void main(){ int a=3,b=0; int * p=&a; b=+a++;
-
下列程序段的输出结果是include<iostream.h>void fun(int*x,int*y){cout<<*x<<*y;*X=3;*y=4;}vo
-
执行下列程序段,结果是 include<iostream.h> void main() { int x=40; char y='C'; int n; n=(x&0xff)&&(y>'B'); cout<<n;}
-
以下程序段的执行结果为()。include< iostream.h>definePLUS(x,y)x+yvoid main (){int x=1,y=2,
-
下列程序的运行结果为include<iostream.h>void main(){int a=2;int b=a+1;cout < < a/b < < endl;}
-
下列程序的输出结果是()。include<iostream.h>int rain(iltl a,int B.{if(a<B.return a;el
-
下列程序的运行结果为include < iostream.h >void main(){ int a=2; int b=a+l; cout < < a/b
-
Tilil程序的运行结果是()。 include<iostream.h> void main { int i=1: while(i<=8)
-
下列程序的执行结果为()。include<iostream.h>void main{int a=3,b=0;int*P =&a;b=+a+
-
下列程序的输出结果为()。 include<iostream.h> void main { char*a[]={”hell0”,”the”,”
-
以下程序的输出结果是 。 include <iostream> include <iomanip> using namespace
-
运行程序,程序输出结果是(). include <iostream> using namespace std; int main() { ch
-
下列程序的输出结果是()。include< iostream.h> void main(){double d=3.2;intx,y:x=1.2;y=(x+3.
-
下列程序的运行结果为()。 include<iostream.h> void main { int a=2: int b=a+1: co
-
以下程序的执行结果为()。include<iostream.h>Class sample{ int n;public: sample(int i){n=i;}
-
下列程序的运行结果为include<iostream.h>int i=0;class A{public: A(){i++;}};void main(){
-
下面程序段的运行结果是 include<iostream.h> void main() {char*s="abcde"; S+=2;
-
下列程序的输出结果为()。include<iostream.h) int ...
推荐题目
- 利润损失保险,在保险有效期内发生了灾害事件后恢复正常生产经营的一段时间是指()。
- 一侧脑干损害引起()瘫痪。
- 判断句活用的三种情况?
- 用于确定建筑物标高的标准水准点一般为()及其以上。
- 花药培养的再生植株均为单倍体。
- 户内AOkV避雷器运行标准:瓷套与固定抱箍之间应有垫层,排列整齐、高低一致,引线采用绝缘线、连接紧密,引下线接地可靠,接地电阻值符合规定。详见第四章第四节。户内AOkV避雷器运行标准包括()。
- 角动量表征质点矢径扫过面积速度的大小,或刚体定轴转动的剧烈程度。
- 按照我国现行规定,关于证券公司代办股份转让服务业务,以下说法正确的是()。
- 国际法院的法官由( )同时并分别选举。
- 科研开发项目的重要特征是()。 A.法人经营资格制度 B.行政许可制度 C.强制性认证认可制度 D.项目课题组负责制