下面程序的运行结果为include<iostream.h>void swap(int &a, int b){int temp;temp=a++;a=b;b=temp;}void main()int a=2,b=3;swap(a, b) ;cout < < a < <"," < < b < < endl;}
相似题目
-
下面程序的运行结果为include<iostream.h>class A{int num;public:A(int) {num=i;}A(A & a) {hum=a. num++;}void print() {cout < < num;}};void main(){A a(1) ,b(a) ;a. print() ;b. print() ;}
-
下面程序的运行结果是include<iostream.h>void main(){int num=1;int &ref=num;ref=ref+2;c
-
下列程序的运行结果为()。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>void main( )char a='3';switch(
-
下面程序的运行结果是()。 include<iostream.h
-
下面程序的运行结果为()。 include<iostream.h> void swap(int &a,int B) { int temp; temp=a++; a=b; b=temp; } void main() { int a=2,b=3; swap(a,b); cout<<a<<“,”<<b<<end1; }
-
下面程序的运行结果是include"iostream.h"define sum(a,b)a*bvoid main(){int x;X=sum(1+2,3);
-
下面程序的运行结果是()。include<iostream.h> void main{int num=1:int&ref=num; ref
-
下面程序的运行结果是()。 include<iostream.h> void fun(int *a,int *B. { int x=*a
-
下列程序的运行结果为include<iostream.h>void main(){int a=2;int b=a+1;cout < < a/b < < endl;}
-
下列程序的运行结果为include < iostream.h >void main(){ int a=2; int b=a+l; cout < < a/b
-
下面程序的结果为()。include<iostream.h>void change(int a,int b){int temp;temp=a;a=b;b=temp
-
运行程序,程序输出结果是(). include <iostream> using namespace std; int main() { ch
-
下面程序的运行结果是【】。 include<iostream> using namespace std; void fun(int&a,int b=3)
-
下面程序的运行结果为 include<iostream.h> void main() { for(int a=0,x=0;! x&&a<=10;a++) { a++; } cout<<a<<end1; }
-
下面程序的运行结果是include<iostream.h>void main(){int i=1;while(i<=8)if (i%3!=2)cont
-
下面程序的运行结果为()。 include<iostream.h> voidmain() { chara=3: switch(a) {
-
下列程序的运行结果为()。 include<iostream.h> void main { int a=2: int b=a+1: co
-
下面程序的运行结果是()。 include<iostream.h> int fun(int a[],int n) { int resuh=1
-
下面程序的运行结果为include<iostream,h>Void swap(int &a,int b){int temp;temp=a++;a=b;
-
下面程序的运行结果是include<iostream.h>Void main(){int num=1;int &ref=num;ref=ref+2;cout < < num;num=num+3;cout < < ref < <endl;}
-
下列程序的运行结果为include<iostream.h>int i=0;class A{public: A(){i++;}};void main(){
-
下面程序段的运行结果是 include<iostream.h> void main() {char*s="abcde"; S+=2;
推荐题目
- 进行廊的单体设计时,廊宽一般宜在()M。
- 企业职工一方与用人单位通过平等协商,可以就劳动报酬、工作时间、休息休假、劳动安全卫生、保险福利等事项订立()。
- 大队辅导员的主要职责包括、开展大队各项活动、()、指导和协调中队辅导员工作、协助学校行政管理工作、协助社区少工委工作。
- 按强制程度不同,指挥形式主要可分为()。
- 党的十七届三中全会调整了土地制度、赋予农民土地流转权,允许农民运用土地为自己谋取更多的合法利益,以调动亿万农民保护耕地的积极性。农民流转土地使用权获得的收益属于()
- 下列哪些情形下的损失或费用,交强险不负责赔偿和垫付。()
- C语言的源程序的基本单位是__
- 资本主义工资的两种主要形式是:
- “辆动-12”由__填写()
- 建筑幕墙工程()单位进行监督和抽查