[单选题]

若磁盘上已存在某个文本文件,其全路径文件名为d:/ncre/test.txt,下列语句中不能打开该文件的是

A.ifstream file("d:/ncre\test.txt");

B.ifstream file("d://ncre//test.txt");

C.ifstream file;file.open("d://ncre//test.txt");

D.ifstream* pFile=new ifstream("d://ncre//test.txt");

参考答案与解析:

相关试题

若磁盘上已存在某个文本文件,其全路径文件名为d:\ncre\test.txt,下