哪一个命令能用来删除当前目录及其子目录下名为‘Core’的文件?()
A: fin
B: -nAmeCore-exeCrm;
C: fin
D: -nAmeCore-exeCrm{}\;
E: fin
F: -nAmeCore-exeCrm{}-;
G: fin
H: -nAmeCore-exeCrm{}。
A: fin
B: -nAmeCore-exeCrm;
C: fin
D: -nAmeCore-exeCrm{}\;
E: fin
F: -nAmeCore-exeCrm{}-;
G: fin
H: -nAmeCore-exeCrm{}。
B
举一反三
- 要将当前目录及其自目录下后缀名为“.bak”的文件全部删除,正确的命令是()。 A: find–name“*.bak”–execrm{}; B: find–name“*.bak”–execrm{}/; C: find–name“*.bak”–execrm/; D: find–name“*.bak”–execrm{}/
- 哪一个命令能用来删除当前目录及其子目录下名为‘core'的文件? A: find.-namecore-execrm; B: find.-namecore-execrm{}\; C: find.-namecore-execrm{}-; D: find.-namecore-execrm{};
- ()命令可以用来删除当前目录及其子目录下名为lx的文件。
- 要建立文件流并打开当前目录下的文件file1.dat用于输入,下列语句中错误的是 。 A: ifstream fin=ifstream.open("file1.dat"); B: ifstream *fin=new ifstream("file1.dat"); C: ifstream fin; fin.open("file1.dat"); D: ifstream *fin=new ifstream(); fin->open("file1.dat");
- 要建立文件流并打开当前目录下的文件file. dat用于输入,下列语句中错误的是______。 A: ifstream fin=ifstream. 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");
内容
- 0
以下命令中,能用来删除当前目录及其子目录下名为'core'的文件的命令是( )。 A: find . -name core -exec rm ; B: find . -name core -exec rm {} \; C: find . -name core -exec rm {} -; D: find . -name core -exec rm {} ;
- 1
Nemo was born with a defective fin, which is called "the lucky fin".( ) A: 对 B: 错
- 2
nasal fin
- 3
要建立文件流并打开当前目录下的文件file.dat用于输入,下列语句中错误的是()。 A: ifstreamfin=ifstream.open(“file.dat”); B: ifstream*fin=newifstream(“file.dat”); C: ifstreamfin;fin.open(“file.dat”); D: ifstream*fin=newifstream();fin->open(“file.dat”);
- 4
函数filecopy的功能是,将fin所指文件中的内容输出到fout所指文件中,但函数不完整: void filecopy( FILE *fin,FILE *fout) { char ch; ch=getc(fin); while(________________) { putc(ch,fout); ch=getc(fin); } }其中下划线处应填入的是