题目内容 (请给出正确答案)
[单选题]

有下列程序段:#include <iostream>using namespace std;int main()

A.Hello,you

B.Hello0you

C.Hello

D.0

提问人:网友lixin080108 发布时间:2022-01-07
参考答案
查看官方参考答案
如搜索结果不匹配,请 联系老师 获取答案
网友答案
查看全部
  • · 有4位网友选择 D,占比44.44%
  • · 有2位网友选择 A,占比22.22%
  • · 有2位网友选择 C,占比22.22%
  • · 有1位网友选择 B,占比11.11%
匿名网友 选择了C
[169.***.***.140] 1天前
匿名网友 选择了C
[171.***.***.57] 1天前
匿名网友 选择了B
[166.***.***.148] 1天前
匿名网友 选择了A
[85.***.***.110] 1天前
匿名网友 选择了D
[124.***.***.231] 1天前
匿名网友 选择了D
[245.***.***.10] 1天前
匿名网友 选择了A
[2.***.***.214] 1天前
匿名网友 选择了D
[6.***.***.9] 1天前
匿名网友 选择了D
[174.***.***.219] 1天前
加载更多
提交我的答案
登录提交答案,可赢取奖励机会。
更多“有下列程序段:#include <iostream>usin…”相关的问题
第1题
设程序如下: #include<iostream> using namespace std; int main() { int **p,*q,r=10; q=&r; p=&q; cout<<**p+1<<end1; return 0; } 以上程序的输出结果是()

A. p的地址

B. r的地址

C.11

D.运行错误

点击查看答案
第2题
有如下程序:

#include

#include

using namespace std;

int main(){

cout$amp; cout$amp; return 0;

}

若程序的输出是12.345679x98765xxxxx,则划线处缺失的部分是

A.setw(10)

B.setfill(’X’)

C.setprecision(8)

D.right

点击查看答案
第3题
有如下程序: #include<iostream> #include<iomanip> using namespace std; class TestClass{ public; TestClass (){cout<<'A';} TestClass(char C){cout<<c;) ~TestClass (){cout<<'B';} }; int main(){ TestClass p1,*p2; p2=new TestClass('X'); delete p2; return 0; } 执行这个程序的结果是()。

A.ABX

B.ABXB

C.AXBB

D.AXB

点击查看答案
第4题
若有以下程序段: #include <iostream> using namespace std; int main () { int a[]={1,4,5}; int *p=&a[0],x=6, y,z; for (y=0; y<3; y++) z= ((* (p+y) <x) ? *(p+y) :x); cout<<z<<end1; return 0; } 程序运行后的输出结果是()。

A.1

B.4

C.5

D.2

点击查看答案
第5题
下列程序的输出结果是______。

include<iostream>

using namespace std;

int main()

{

int data=l;

int &r = data;

data+=5;

r+=5;

cout<<data<<endl;

return 0;

}

点击查看答案
第6题
若有以下程序段; #include<iostream> using namespace std; int main() { int a[]={1,4,5}; int *p=&a[0],x=6,y,z; for(y=0;y<3;y++) z=((*(p+y)<x) ? *(p+y):x); cout<<z<<end1; return 0; } 程序运行后的输出结果是()。

A.1

B.4

C.5

D.2

点击查看答案
第7题
10.The main purpose of the fifth generation computer effort is ______.

A.to use molecules instead of electronic elements

B.to express logical symbols in the way of chemical units of DNA

C.to obtain true artificial intelligence

D.to take the place of human thoughts

点击查看答案
第8题
有以下程序: #include <iostream> #include <string> usxng namespace std; int main() { char p[] = "abcdefgh"; cout<<strlen(strcpy(p,"12345"))<<end1; return 0; } 执行后输出的结果是()。

A.8

B.12

C.5

D.7

点击查看答案
第9题
关于标准输出流对象cout,可以使用的方式有: 1) 先说明: using namespace std; 再使用: cout<<"hello"; 2) 3) 无需指明命名空间,可直接如下使用:> A、1、2

B、3

C、2、3

D、1

点击查看答案
账号:
你好,尊敬的用户
复制账号
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改
欢迎分享答案

为鼓励登录用户提交答案,简答题每个月将会抽取一批参与作答的用户给予奖励,具体奖励活动请关注官方微信公众号:简答题

简答题官方微信公众号

警告:系统检测到您的账号存在安全风险

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

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