题目内容 (请给出正确答案)
[主观题]

阅读下面程序: include<iostream.h> void f(int n) { int x(5); static int y(10); if(n>0) { ++

阅读下面程序:

include<iostream.h>

void f(int n)

{

int x(5);

static int y(10);

if(n>0)

{

++x;

++y;

cout<<x<<","<<y<<endl;

}

}

void main()

{

int m(1);

f(m),

}

则该程序的输出结果是【 】

查看答案
如搜索结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能会需要:
您的账号:
发送账号密码至手机
发送
更多“阅读下面程序: include<iostream.h> vo…”相关的问题

第1题

若有以下程序:#include <iost ream>using namespace std;class A{private: int a;public: A(int

若有以下程序: #include <iost ream> using namespace std; class A { private: int a; public: A(int i) { a=i; } void disp () { cout<<a<<", "; } }; class B { private:

A.10,10,10

B.10,12,14

C.8,10,12

D.8,12,10

点击查看答案

第2题

有如下程序:#include<iost earn>using namespace std;class TestClass{protected:TestClass(){co

有如下程序: #include<iost earn> using namespace std; class TestClass{ protected: TestClass(){cout<<'x';} TestClass(char C) {cout<<c;} }; class TestClass1:public TestClass { public: TestClass1(char C) {Cout<<c;) }; int main(){ TestClass1 d1('y'); return 0; } 执行这个程序,屏幕上将显示输出()。

A.y

B.yx

C.xy

D.yy

点击查看答案

第3题

阅读下面程序,则程序的执行结果为【10】。 #include"stdio.h" main() {inta=10; fun(a); p

阅读下面程序,则程序的执行结果为 【10】 。

#include "stdio.h"

main()

{ int a=10;

fun(a);

printf("%d\n",a);}

fun(int x)

{ x=50;}

点击查看答案

第4题

阅读下面程序,则执行后的结果为_____ #include <stdio.h>    int main()   { char *str="abcdefghijklmnopq";   while(*str++!=′e′);   printf("%cn",*str);  }
点击查看答案

第5题

阅读下面程序,则程序的执行结果为()。 include"stdio.h" main() {int a=10; fun(A); printf("%d\

阅读下面程序,则程序的执行结果为()。 include"stdio.h" main() {int a=10; fun(A); printf("%d\n",A);} fun(int x) {x=50;}

点击查看答案

第6题

阅读下面程序,则执行后程序的结果为【9】 #include"stdio.h" main() {inta=0,b=0; while(

阅读下面程序,则执行后程序的结果为 【9】

#include "stdio.h"

main()

{ int a=0,b=0;

while(a <15)a++;

while(b++ <15);

printf("%d,%d\n",a,b);}

点击查看答案

第7题

阅读下面程序,则执行后的结果为 #include’stdio.h’ min()}f B. C.e D.q

A.f

B.a

C.e

D.q

点击查看答案

第8题

阅读下面程序,则执行后的结果为 #include"stdio.h" main() {char*str="abcdefghijklmno

阅读下面程序,则执行后的结果为

#include "stdio.h"

main()

{ char *str="abcdefghijklmnopq";

while(*str++!=′e′);

printf("%c\n",*str);}

A.f

B.a

C.e

D.q

点击查看答案

第9题

阅读下面语句,则程序的执行结果是【7】。 #include"stdio.h" main() {inta=-1,b=1,k; if((

阅读下面语句,则程序的执行结果是 【7】 。

#include "stdio.h"

main()

{ int a=-1,b=1,k;

if((a <0)&&!(b--<=0))

printf("%d,%d\n",a,b);

else printf("%d,%d\n",b,a);}

点击查看答案

第10题

阅读下面程序:#include <iomanip. h>int main (){ cout<<setfill('*')<<setw(8 ); cout<<setpre

阅读下面程序: #include <iomanip. h> int main () { cout<<setfill('*' )<<setw(8 ); cout<<setprecision(5 )<<3.1415926<<end1; return 0; } 则该程序的输出结果是 ()。

A.3.1415**

B.***3.1416

C.3.141593

D.**3.14159

点击查看答案

第11题

阅读下面程序,程序执行后的结果为()。 #include"stdio.h" main() {char*str="abcdefghijklnmopq": while(*str++!='e'); printf("%c\n",*str); }

A.f

B.a

C.e

D.a

点击查看答案
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改
温馨提示
每个试题只能免费做一次,如需多次做题,请购买搜题卡
立即购买
稍后再说
警告:系统检测到您的账号存在安全风险

为了保护您的账号安全,请在“赏学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!

微信搜一搜
赏学吧
点击打开微信
警告:系统检测到您的账号存在安全风险
抱歉,您的账号因涉嫌违反赏学吧购买须知被冻结。您可在“赏学吧”微信公众号中的“官网服务”-“账号解封申请”申请解封,或联系客服
微信搜一搜
赏学吧
点击打开微信