首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
有如下语句序列: char str[10];ci>>str; 当从键盘输入’’I love this game’’时,str中的字符串是( )。
有如下语句序列: char str[10];ci>>str; 当从键盘输入’’I love this game’’时,str中的字符串是( )。
admin
2020-11-11
32
问题
有如下语句序列:
char str[10];ci>>str;
当从键盘输入’’I love this game’’时,str中的字符串是( )。
选项
A、’’I love this game’’
B、’’I love thi’’
C、’’I love’’
D、’’I’’
答案
D
解析
由于字符\0作为字符串的结束标志,所以当从键盘上输入“I love this game”时,只把字母I输入字符串s仃。
转载请注明原文地址:https://jikaoti.com/ti/Pul0FFFM
本试题收录于:
二级C题库NCRE全国计算机二级分类
0
二级C
NCRE全国计算机二级
相关试题推荐
使用VC6打开考生文件夹下的源程序文件modi3.cpp。通过继承完成输入到屏幕指定的信息:TestClassATestClassBTestClassC其中定义的类并不完整,按要求完成下列操作,将类的定义补充完整。
请使用VC6或使用【答题】菜单打开考生文件夹proj2下的工程proj2,此工程中含有一个源程序文件proj2.epp。函数char*GetNum(char*src,char*buf)从src开始扫描下一个数字字符序列,并将其作为一个字符串取出放人字符串空
请使用VG6或使用【答题】菜单打开考生文件夹pmjl下的工程proj1,其中有枚举DOGCOLOR、狗类Dog和主函数main的定义。程序中位于每个“//ERROR****found****”下的语句行有错误,请加以改正。改正后程序的输出结果应该是:
执行下列语句段后,输出字符“*”的个数是()。for(inti=50;i>1;一一i)cout<<’*’:
请使用VC6或使用【答题】菜单打开考生目录proj3下的工程文件proj3,此工程中包含一个源程序文件proj3.cpp,补充编制C++程序proj3.cpp,其功能是读取文本文件in.dat中的全部内容,将文本存放到doc类的对象myD0c中。然后将my
有如下函数模板:template<typenameT,typenameU>Tcast(Uu){returnu;}其功能是将U类型数据转换为T类型数据。已知i为int型变量,下列对模板函数cast的调用中正确的是(
软件按功能可以分为:应用软件、系统软件和支撑软件(或工具软件)。下面属于应用软件的是()。
请使用VC6或使用【答题】菜单打开考生文件夹proj2下的工程proj2,此工程包含有一个源程序文件proj2.cpp,其中定义了Stack类和ArrayStack类。stack是一个用于表示数据结构“栈”的类,栈中的元素是字符型数据。Stack为抽象类
随机试题
可满足组织成员心理上的自主需要,减少由于地位差异而造成的心理距离的领导方式是()
下列属于新闻单位的是()
法定代表人对项目评估的实质性内容的审核,包括()
言语沟通在技巧上主要采用
根据我国宪法,国家保护私营经济的合法的权利和利益,对私营经济实行的原则是()
某承包商承揽的写字楼工程,由于场地中间有几户居民不搬迁,工程不能按期开工。承包商向业主(监理工程师)发出索赔意向书后,依然迟迟不能开工。在这样的情况下,承包商应该按照工程师要求的合理间隔期,提交()。
结合实际论述教育中三种典型的师生关系模式对学生的影响。
一、注意事项1.本试卷由给定资料与作答要求两部分构成。二、给定资料1.2007年4月9日至10日,全国纠风工作会议在广州召开。中共中央常委、国务院总理温家宝会前对纠风作出重要批示,中共中央政治局常委、中央纪委书记吴官正向会议致信,国务委员兼
Thespeakermainlydiscusses______.
A、Heisadirectorofhisdepartment.B、Heisconfusedbythemessage.C、Hebearsthesamenamewithacolleague.D、Heworksin
最新回复
(
0
)