网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

若磁盘上已存在某个文本文件,其全路径文件名为 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 ,下列语句中不 能打开该文件的是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"); ” 相关考题
考题 某网站主页地址为http://ncre.eduexam.cn/weboot/,打开网页,浏览“等考书城”页面信息,查找“NCRE教程三级网络技术”页面内容,将其以文本文件的格式保存在指定目录下,命名为IE2.txt。

考题 若对一个文本文件以”r”方式打开时,则称该文本文件为输出文件。() 此题为判断题(对,错)。

考题 某考试网站的主页地址是:HTTP://NCRE/1JKS/tNDEX.HTML,打开此主页,浏览“计算机考试”页面,查找“NCRE由什么机构组织实施?”页面内容,并将它以文本文件的格式保存到考生文件夹下,命名为“1jswks09.txt”。

考题 若磁盘上已存全路径文件名为c:\ctest\test.txt的文件,下面语句中不能打开该文件的是( )。A.ifstream *pFile=new ifstream("c:\\ctest\\test.txt");B.ifstream file("c:\\ctest\\test.txt");C.ifstream file;file.open("c:\\ctest\\test.txt");D.ifstream file("c:\etest\test.txt");

考题 若磁盘上已存在某个文本文件,其全路径文件名为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:\shiti\tes.txt,下列语句中不能打开该文件的是( )。A.ifstream file("d:\shiti\test.txt");B.ifstream file("d:\\shiti\\test.txt");C.ifstream file;file.open("d:\\shiti\\test.txt");D.ifstream* pFile = new ifstream("d:\\shiti\\test.txt");

考题 某网站主页地址为http://ncre.eduexam.cn/weboot/,打开网页,浏览“网络课堂”页面信息,查找“二级C语言”页面内容,将它以文本文件的格式保存在指定目录下,命名为IE18.txt。

考题 以“w”方式打开文本文件a:aa.dat,若该文件已存在,则()。A.新写入数据被追加到文件末尾B.文件被清空,从文件头开始存放新写入数据C.显示出错信息D.新写入数据被插入到文件首部

考题 当已存在一个test.txt文件时,执行函数fopen("test.txt","r+")的功能是()。A.打开test.txt文件,覆盖原有的内容B.打开test.txt文件,可以读取和写入新的内容C.打开test.txt文件,只能写入数据,但不能读取数据D.打开test.txt文件,只能读取原有内容,但不能写数据