建立新图形文件,用过下拉式菜单的操作方式是()
第1题:
( 16 )要建立文件流并打开当前目录下的文件 file.dat 用于输入,下列语句中错误的是
A ) ifstream fin=ifstream.open ( "file.dat" ) ;
B ) ifstream*fir.=new ifstream ( "file.dat" ) ;
C ) ifstream fin; fin.open ( "file.dat" ) ;
D ) ifstream *fin=new ifstream ( ) ; fin 一 >open ( "file.dat" ) ;
第2题:
A.Save(存储)、SaveforWeb(存储为Web文件)
B.SaveAs(存储为)
C.SaveaCopy(存储副本)
D.SaveforGraphic(存储为图形文件)
第3题:
若磁盘上已存在某个文本文件,其全路径文件名为 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");
第4题:
在CAD中把一个画好或编辑好的图形保存到磁盘上,可使用的方法有()
A.文件[File]保存[Save]
B.文件[File]另存为[Saveas]
C.鼠标左键点击工具条上保存按钮
D.输出(Export)
第5题:
若磁盘上已存全路径文件名为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");
第6题:
A、将文件file2的内容添加到文件file1的末尾
B、将文件file1的内容添加到文件file2的末尾
C、连接文件file1和file2
D、显示文件file1和file2
第7题:
A.打开一个文件,不管文件在不在
B.打开文件并写入
C.在桌面上打开一个文件(路径得看个人具体情况),w的意思是,如果有则在文件里写入helloworld,如果没有则创建一个文件。
D.打开文件,没有报错
第8题:
下面创建一个新文件对象方法错误的是( )。
A.File myFile; myFile=new File("mulu/file");
B.File myFile=new File();
C.myFile=new FileC/mulu","filel");
D.File myDir=new file("/mulu"); myFile=new File(Dir, "filer');
第9题:
要建立文件流并打开当前目录下的文件6le.dat用于输入,下列语句中错误的是( )。
A.ifstream fin=ffstream.open(”file.dat”);
B.ifstream*fin=new ifstream(”file.dat”);
C.ifstream fin;fin.open(”file.dat”);
D.ifstream*fin=new ifstream;fin->open(”file.dat”);
第10题:
若磁盘上已存在某个文本文件,其全路径文件名为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");