1)#include<iostream> 2)usingnamespacestd; 3)intmain() 4){ 5)inta,b,result; 6)cout<<"pleaseinputtwonumbers: "; 7)cin>>a>>b; 8)result=3*a-2*b+1; 9)cout<<"resultis"<<result<<endl; 10)}程序第5行执行结束后,a的值是多少:()
相似题目
-
1)#include<iostream> 2)usingnamespacestd; 3)intmain() 4){ 5)inta,b,result; 6)cout<<"pleaseinputtwonumbers: "; 7)cin>>a>>b; 8)result=3*a-2*b+1; 9)cout<<"resultis"<<result<<endl; 10)}程序第5行定义了几个整型变量:()
-
有如下程序: include<iostream> usingnamespacestd; classC1{ public: ~C1(){cout<<1;) }; classC2:publicC1{ public: ~C2(){cout<<2;) }; intmain(){ C2cb2; C1*cb1: return0; } 运行时的输出结果是()。
-
有如下程序: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.h> classbase{ protected: inta; public: base(){cout<<"0";} }; classbasel:virtualbase{ public: basel(){cout<<"1";} }; classbase2:virtualbase{ public: base2(){cout<<"2";} }; classderived:publicbasel,publicbase2{ public:
-
下面程序的运行结果是include"iostream.h"define sum(a,b)a*bvoid main(){int x;X=sum(1+2,3);
-
有如下程序: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> 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(){ int x=5,y=2; cout<<!(y==x/2)<<","; cout<<y!=x%
-
下列程序的运行结果为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>Void main(){int num=1;int &ref=num;ref=ref+2;cout < < num;num=num+3;cout < < ref < <endl;}
-
有以下程序include"iostream.h"void main(){inti=l,j=1,k=2;if ((j++{}k++)&&i++)cout<
-
有如下程序:include<iostream>using namespace std;class Test{public:Test(){n+=2;}~Test(){n-
-
下面程序段的运行结果是 include<iostream.h> void main() {char*s="abcde"; S+=2;
-
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
-
下列程序的输出结果是 。 using namespce std; include <iostream> int main() { int x=1,i=1; for (; x < 50; i++) { if(x >= 10) break; if(x % 2 != 0){ x += 3; continue; } x-=-1; } cout<<x<<'
推荐题目
- 矿粒在脱水槽中所受到的水流作用力都是向中心的。
- 以下关于地陪送站时办理离站手续的说法中不正确的是()。
- 烤瓷熔附金属冠不透明瓷厚度一般为()
- 对初中生情绪进行调节的方法包括()。
- 柜员办理现金上缴,现金实物与打印清单可以不同时交管库员。
- 接地线应用多股软裸铜线,其截面积不得小于()m㎡。
- 在聚合物驱过程中,对油、水井进行分层测试以及注示踪剂监测.可以对比分析聚合物驱过程中油层吸水厚度和出油剖面变化,分析注聚合物后油层()非均质波及调整效果。
- 关于结核菌素试验结果,下列哪项正确()。
- 防火分隔水幕的喷头布置,应保证水幕的宽度不小于()m。采用水幕喷头时,喷头不应少于()排;采用开式洒水喷头时,喷头不应少于()排。
- 热风岗位作业标准(风险辨识清单)2.2:风险辨识中电葫芦存在的风险下面说法正确的是()