下列程序执行结果是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) int ...
-
下列程序的输出结果为()。 include<iostream.h)
推荐题目
- 330MW机组本特利3500 TSI二次表键相模块型号为()
- 长期进行健美锻炼,能够()、增长力量;增进健康、增强体质;改善体形体态、矫正畸形;调节心理活动,陶冶情操。
- 梦是无意想象的一种极端形式。
- 下面关于铵松蜡炸药论述正确的是()。
- 关于工程量清单说法正确的是()。
- 以下哪一种代表了典型的交互式应用()。
- 下列哪些不属于法定应当从轻或者减轻行政处罚的情形
- 业务运营风险分级管理是指依托业务运营风险管理系统,根据准风险事件和风险事件的性质、金额等确定风险等级,并进行()。
- 战术通信网以野战通信装备为主,并利用战斗地区的既有通信设施。
- 发电机的强行励磁是指系统内发生突然短路时,发电机的()突然下降,当超过一定数值时,励磁电源会自动地增加()至最大。