1)include<iostream><iostream>2)using namespace std;3)int main()4){5)int a,b,result;6)cout<<"please input two numbers:";7)cin>>a>>b;8)r
相似题目
-
以下程序的输出结果是()。include <iostream.h>void main(){int a=0,i;for(i=1 ;i<5;i++){ switc
-
有如下程序:include<iostream.h>long fib(int n){if(n>2)return(fib(n-1)+fib(n-2)); else retu
-
下面程序的运行结果是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>using namespace std;int f(){static int i = O;ints= 1;s+=i;
-
下面程序的运行结果是include"iostream.h"define sum(a,b)a*bvoid main(){int x;X=sum(1+2,3);
-
有如下程序:include<iostream>using namespace std;class DA{int k;public:DA(int x=1):k(x){}~
-
以下程序段的输出结果是[ ]。 include<iostream.h> void ref(int &i); void main(){int val=1
-
下面程序的运行结果是()。include<iostream.h> void main{int num=1:int&ref=num; ref
-
有如下程序:include<iostream>using namespace std;long fun(int n){if(n>2)return(fun(n-1)+fu
-
以下程序段的执行结果为()。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 i=0;void fun(){{ Static int i=1 Std::cont<<i++<<','; } S
-
有如下程序: include<iostream> usingnamespacestd; classAA{ public; AA(){cOUt<<1;)
-
Tilil程序的运行结果是()。 include<iostream.h> void main { int i=1: while(i<=8)
-
有如下程序:include<iostream>using namespace std;class GA{public:virtual int f(){return 1
-
下列程序的输出结果是()。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;iht b=a+1;cout <<a/b <<end1;}A
-
有如下程序: include<iostream> usingnamespacestd; classTest { public: Test(){n+=2;} ~Test(){n-=3;} staticintgetNum(){returnn;} private: staticintn; }; intTest::n=1; intmain() { Test*p=neWTest; deletep;
-
下面程序的运行结果是include<iostream.h>void main(){int i=1;while(i<=8)if (i%3!=2)cont
-
下列程序的运行结果为()。 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>main(){int a=4,b=3,c=1,d;d=a&&b&&am
-
有以下程序include"iostream.h"void main(){inti=l,j=1,k=2;if ((j++{}k++)&&i++)cout<