What do we know about Ban Francisco?
A.It is a city. built in the mountains.
B.It has the world-famous bridge.
C.Visiting the city is not so easy.
D.It has no bus service.
第1题
下面程序的结果为 #include" iostream.h" void change(int a,int b) { int temp; temp=a; a=b; b=temp; } void main() { int m,n; m=8; n=9; change(m,n); tout < < m < < " " < < n < < end1; }
A.8 9
B.9 8
C.程序有错误
D.9 9
第2题
下面程序的结果为()。 #include<iostream.h> void change(int a,int b) { int temp; temp=a; a=b; b=temp; } void main() { int m,n; m=8; n=9; change(m,n); cout<<m<<""<<n<<endl; }
A.89
B.98
C.程序有错误
D.99
第3题
下面程序的结果为()。 #include"iostream.h" void change (int a,int b) { int temp; temp=a; a=b; b=temp: } void main() { int m,n; m=8; n=9; change(m,n): cout << m<<" "<< n << endl; }
A.89
B.98
C.程序有错误
D.99
第4题
下面程序的结果为 #include"iostream.h" void change(int a,int b) { int temp; temp=a; a = b; b=temp; } void main() { int m,n; m=8; n=9; change(m,n); cout<<m <<" " << n << endl; }
A.8 9
B.9 8
C.程序有错误
D.9 9
第5题
下面程序的结果为 #include"iostream.h" void change(int a,int b) { int temp; temp=a; a=b; b=temp; } void main() { int m,n; m=8; n=9; change(m,n); cout<<m<<" "<<n<<endl; }
A.8 9
B.9 8
C.程序有错误
D.9 9
第6题
下面程序的结果为 #include"iostream.h" void change(int a,int B) { int temp; temp=a; a=b; b=temp; } void main() { int m,n; m=8; n=9; change(m,n); cout<<m<<" "<<n<<endl; }
A.8 9
B.9 8
C.程序有错误
D.9 9
第7题
下面程序的运行结果为()。 #include<iostream.h> class A { int num public: A(int i){num=i;} A(A&a){Bum=a.num++;} void print(){cout<<Bum;} }; void main() { A a(1),b(a); A. print(); B.print(); }
A.11
B.12
C.21
D.22
第8题
下面程序的输出结果为 【 】 。
include<iostream.h>
void main()
{
int num=0,i=8;
do{
i--;
num ++;
}while(--i);
cout<<num<<end1;
}
第9题
下面程序的运行结果为 #include<iostream.h> class A { int num; public: A(int i){num=i;} A(A &a) { num = a.num+ +;} void print() {cout << num;} }; void main(0 { A a (1),b (a) ; a.print(); b.
A.11
B.12
C.21
D.22
第10题
在下面程序横线处填上适当内容,使程序执行结果为: S=2 S=5 S=9 #include <iostream.h> void sum(int i) {static int s; _________; cout<<"s="<>< <endl; } void main (void) {int i; for (i="0;">
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!