搜题
网友您好,请在下方输入框内输入要搜索的题目:
搜题
题目内容 (请给出正确答案)
提问人:网友xsheep 发布时间:2022-01-07
[主观题]

执行语句序列ofstream outf(“SALARY.DAT”);if(...)cout<<“成功”;else> A、!outf或者outf.fail()

B、!outf或者outf.good()

C、outf或者outf.fail()

D、outf或者outf.good()

简答题官方参考答案 (由简答题聘请的专业题库老师提供的解答)
查看官方参考答案
更多“执行语句序列ofstream outf(“SALARY.DAT”);if(...)cout<<“成功”;else> A、!outf或者outf.fail()”相关的问题
第1题
下列程序段打开一个文件。 …… ofstream out("file.txt"); if( ) { cout<<"打开文件失败!"< return 1;>
点击查看答案
第2题
使用以下()方式打开文件时,文件指针被指向文件尾。

A. Binary

B. Random

C. Output

D. Append

点击查看答案
第3题
下面程序代码打开了一个二进制文件。 …… ifstream file3; …… file3.open("abc.bmp", );
点击查看答案
第4题
以下函数的功能为( ) int func(string filename) { fstream file(filename,ios::in); if(!file.fail()) { char ch; int i=0; for(;!file.eof();i++) file.get(ch); file.close(); return i-1; } return -1; }

A、返回字符串filename中的字符数

B、读取文件filename,并返回文件中的字符数

C、读取文件filename,并返回文件中的最大的那个字符的编码

D、写入文件filename,并返回写入的字符数

点击查看答案
第5题
文件的打开方式有多种多样的组合,如下打开方式错误的是( )

A、ifstream f(filename, ios::in| ios::app);

B、ofstream f(filename, ios::out | ios::app);

C、ofstream f(filename, ios::app);

D、fstream f(filename, ios::in | ios::out);

点击查看答案
第6题
He then drew out of a pile of papers??????with nam...
He then drew out of a pile of papers____with name and dates which could____20 years ago.
A.marked; date fromB.marked; be dated back fromC.marking; date up toD.marking; date from
点击查看答案
第7题
阅读理解。?????Tens of thousands of Chinese have jo...
阅读理解。
Tens of thousands of Chinese have joined a debate on whether students should be separated into science

and liberal arts (文科) classes in high school, a practice that allows them to stay competitive (有竞争力的) in

college entrance exam by choosing preferred subjects. The debate came after the Ministry of Education began

to ask for opinions from the public on Friday on whether it was necessary and possible to stop the dividing

system, which has been accepted for decades.

In a survey started by www. qq. com, more than 260 000 people cast their votes, with 54 percent of

those voted for the abolishment (废除) and 40 percent against.

A netizen from Chengdu said:"Sciences can activate the mind, while arts could strengthen their learning

ability."

But some people disagreed with him. A netizen nicknamed "gentle scholar" said the students would have

more burden if they have more subjects to study. "You don't even know how difficult the courses are. I

suggest a survey among students."

"Abolish the current system of division? We have to study nine subjects? Finally we will study everything

and have learnt little," wrote another netizen.

Li Yanling, an education expert in Beijing, called on education authorities to consider students' school

burden. Chinese students are required to choose either arts or sciences subjects after ten years' education,

which include six years in primary school, three years in junior high school and one year in senior high

school.

Besides the Chinese language, mathematics and English, which are must for everyone, science students

are required to take physics, biology and chemistry, while arts students study politics, history and geography.

1. Choosing preferred subjects can help students _____.

[    ]

A. have more chance to look for jobs in future

B. find a good job after graduation

C. have more advantages to enter a university

D. show interest in daily life

2. Netizen nicknamed "gentle scholar" _____.

[    ]

A. is for the abolishment

B. is against the abolishment

C. doesn't care the abolishment

D. prefers students to learn more

3. Which of the following statements is NOT true?

[    ]

A. The debate is on whether the students should choose science or liberal arts classes in high school

B. More people on the Internet are for the abolishment

C. The students who are against the abolishment think abolishing the current system of division will heavy

their burden.

D. Science students are required to take physics, biology and chemistry besides Chinese, math and English.

点击查看答案
第8题
道岔主线 main line of turnout
点击查看答案
第9题
下列关于异常的叙述错误的是:

A、编译错属于异常,可以抛出

B、运行错属于异常

C、硬件故障也可当异常抛出

D、只要是编程者认为是异常的都可当异常抛出

点击查看答案
重要提示: 请勿将账号共享给其他人使用,违者账号将被封禁!
查看《购买须知》>>>
重置密码
账号:
旧密码:
新密码:
确认密码:
确认修改
购买搜题卡查看答案
购买前请仔细阅读《购买须知》
请选择支付方式
微信支付
支付宝支付
点击支付即表示你同意并接受《服务协议》《购买须知》
立即支付
搜题卡使用说明

1. 搜题次数扣减规则:

功能 扣减规则
基础费
(查看答案)
加收费
(AI功能)
文字搜题、查看答案 1/每题 0/每次
语音搜题、查看答案 1/每题 2/每次
单题拍照识别、查看答案 1/每题 2/每次
整页拍照识别、查看答案 1/每题 5/每次

备注:网站、APP、小程序均支持文字搜题、查看答案;语音搜题、单题拍照识别、整页拍照识别仅APP、小程序支持。

2. 使用语音搜索、拍照搜索等AI功能需安装APP(或打开微信小程序)。

3. 搜题卡过期将作废,不支持退款,请在有效期内使用完毕。

请使用微信扫码支付(元)

订单号:

遇到问题请联系在线客服

请不要关闭本页面,支付完成后请点击【支付完成】按钮
遇到问题请联系在线客服
恭喜您,购买搜题卡成功 系统为您生成的账号密码如下:
重要提示:请勿将账号共享给其他人使用,违者账号将被封禁。
发送账号到微信 保存账号查看答案
怕账号密码记不住?建议关注微信公众号绑定微信,开通微信扫码登录功能
警告:系统检测到您的账号存在安全风险

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

- 微信扫码关注简答题 -
警告:系统检测到您的账号存在安全风险
抱歉,您的账号因涉嫌违反简答题购买须知被冻结。您可在“简答题”微信公众号中的“官网服务”-“账号解封申请”申请解封,或联系客服
- 微信扫码关注简答题 -
请用微信扫码测试
欢迎分享答案

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

简答题官方微信公众号

简答题
下载APP
关注公众号
TOP