问题 单项选择题

下列打开文件的表达式中,错误的是( )。

A.ofstream ofile;ofilopen("C:\\vc\Labtxt",ios::binar;

B.fstream iofile;iofilopen("abtxt",ios::at;

C.ifstream ifile("C:\\vc\abtxt");

D.couopen("C:\\vc\abtxt",ios::binar;

答案

参考答案:D

解析: 选项D) 中,cout是标准输出流对象,所以不能用于打开文件。其他选项叙述均正确。

选择题
多项选择题