作业帮 > 英语 > 作业

When used with an input file stream,which of the following s

来源:学生作业帮 编辑:百度作业网作业帮 分类:英语作业 时间:2024/08/19 16:44:55
When used with an input file stream,which of the following statements about the open function is false?
a.It associates the name of a stream variable with the name of a physical disk file.
b.It puts the stream into the fail state if the file already
does not exist.
c.It sets the reading marker at the first character in the file.
d.It creates a new,empty file if the file does not already exist.
e.none of the above
我选的是B,结果错了,求正解
When used with an input file stream,which of the following s
d,文件不存在时,返回fail state(-1),而不会创建一个新的空文件