What happens when a C++ input stream enters the fail state?
来源:学生作业帮 编辑:百度作业网作业帮 分类:综合作业 时间:2024/08/07 23:32:10
What happens when a C++ input stream enters the fail state?
a.The system displays an error message,and program execution is terminated.
b.The system displays an error message,the program continues running,and further input operations with that stream are ignored.
c.The system does not display an error message,and program execution is terminated.
d.The system does not display an error message,the program continues running,and further input operations with that stream are ignored.
e.none of the above
我选的是B,结果错了,求正解
a.The system displays an error message,and program execution is terminated.
b.The system displays an error message,the program continues running,and further input operations with that stream are ignored.
c.The system does not display an error message,and program execution is terminated.
d.The system does not display an error message,the program continues running,and further input operations with that stream are ignored.
e.none of the above
我选的是B,结果错了,求正解
d.
你看下面的程序
while( cin>>str )
do ...
就是一直读入字符串到str,直到文件流状态为错,但既没有输出错误,也不会终止.应该选D
你看下面的程序
while( cin>>str )
do ...
就是一直读入字符串到str,直到文件流状态为错,但既没有输出错误,也不会终止.应该选D
What happens when a C++ input stream enters the fail state?
When used with an input file stream,which of the following s
When a body enters the earth’s atmosphere,it travels__
英语翻译what does the lion do on a hot day?what happens when the
what happens ____ you call him?A what B how C when D which
What happens when water ______?A.to boil B.boiling C.will bo
( )What happens when water__? A.to boil B.boiling C.will boi
B What happens inside the skull of a soccer player when repe
What would you say when the following happens?
what happens when you don't seize the moment
What happens when you put water in a freezer?
英语翻译When the auto enters the highway system,a retractable ar