下面程序的运行结果为include<iostream,h>Void swap(int &a,int b){int temp;temp=a++;a=b;
相似题目
-
下面程序的运行结果为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 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;