• 2022-10-26 问题

    要建立文件流并打开当前目录下的文件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");

    要建立文件流并打开当前目录下的文件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");

  • 2022-05-27 问题

    以长格式列出当前用户家目录下文件名以file开头,跟着2到5之间的一个数字的所有文件(提示,结合ls 命令) A: ls -l ~/file[2-5]* B: find ~ -name "file[2-5]*" C: find ~ -name "file[2-5]*" -exec ls -l {} ; D: ls -a ~/file[2-5]* E: ls -l ~/file[2-5] F: find ~ -name "file[2-5]?"

    以长格式列出当前用户家目录下文件名以file开头,跟着2到5之间的一个数字的所有文件(提示,结合ls 命令) A: ls -l ~/file[2-5]* B: find ~ -name "file[2-5]*" C: find ~ -name "file[2-5]*" -exec ls -l {} ; D: ls -a ~/file[2-5]* E: ls -l ~/file[2-5] F: find ~ -name "file[2-5]?"

  • 2022-07-22 问题

    以下通过JSP的include指令来引入这些抽取出的JSP页面方式正确的是( ) A: < %@include file="head.jsp"% > B: <%@include file="head.jsp"%> C: <% @include file="head.jsp"%> D: <%@ include file="head.jsp"%>

    以下通过JSP的include指令来引入这些抽取出的JSP页面方式正确的是( ) A: < %@include file="head.jsp"% > B: <%@include file="head.jsp"%> C: <% @include file="head.jsp"%> D: <%@ include file="head.jsp"%>

  • 2022-06-27 问题

    定义fp为文件型指针变量,以读写方式打开一个已存在的文本文件test.dat,下面fopen函数正确的调用方式是: A: FILE *fp; fp=fopen("test.dat", "rb"); B: FILE*fp; fp=fopen("test.dat", "r+"); C: FILE *fp; fp=fopen("test.dat", "r"); D: FILE *fp; fp=fopen("test.dat", "rb+");

    定义fp为文件型指针变量,以读写方式打开一个已存在的文本文件test.dat,下面fopen函数正确的调用方式是: A: FILE *fp; fp=fopen("test.dat", "rb"); B: FILE*fp; fp=fopen("test.dat", "r+"); C: FILE *fp; fp=fopen("test.dat", "r"); D: FILE *fp; fp=fopen("test.dat", "rb+");

  • 2022-06-07 问题

    Which one of the following is a correct way to create a file for both reading and writing using the function fopen ? A: "ab+" B: "wb+" C: "rb+" D: "ab"

    Which one of the following is a correct way to create a file for both reading and writing using the function fopen ? A: "ab+" B: "wb+" C: "rb+" D: "ab"

  • 2022-06-06 问题

    若磁盘上己存在某个文本文件,其全路径文件名为d:myfile est.txt,下列语句中不能打开该文件的是______。 A: ifstream file("d:myfile est.txt"); B: ifstream file("d:\myfile\test.txt"); C: ifstream file;file.open("d:\myfile\test.txt"); D: ifstream *pFile=new ifstream("d:\myfile\test.txt");

    若磁盘上己存在某个文本文件,其全路径文件名为d:myfile est.txt,下列语句中不能打开该文件的是______。 A: ifstream file("d:myfile est.txt"); B: ifstream file("d:\myfile\test.txt"); C: ifstream file;file.open("d:\myfile\test.txt"); D: ifstream *pFile=new ifstream("d:\myfile\test.txt");

  • 2022-05-30 问题

    要求打开文件f:\myfile。dat,并能够写入数据,正确的语句是( )。 A: ofstream outfile("f:\\myfile.dat ", ios::in); B: ifstream infile("f:\\myfile.dat", ios::in); C: fstream infile("f:\\myfile.dat ", ios::in | ios::out); D: ifstream infile("f:\\myfile.dat ", ios::out);

    要求打开文件f:\myfile。dat,并能够写入数据,正确的语句是( )。 A: ofstream outfile("f:\\myfile.dat ", ios::in); B: ifstream infile("f:\\myfile.dat", ios::in); C: fstream infile("f:\\myfile.dat ", ios::in | ios::out); D: ifstream infile("f:\\myfile.dat ", ios::out);

  • 2022-06-14 问题

    要打开一个已存在的非空二进制文件“file”用于修改,选择正确的语句是( ) A: fp=fopen("file","rb"); B: fp=fopen("file","ab+"); C: fp=fopen("file","wb"); D: fp=fopen("file","rb+");

    要打开一个已存在的非空二进制文件“file”用于修改,选择正确的语句是( ) A: fp=fopen("file","rb"); B: fp=fopen("file","ab+"); C: fp=fopen("file","wb"); D: fp=fopen("file","rb+");

  • 2022-07-24 问题

    在使用MapReduce程序WordCount进行词频统计时,对于文本行“hellomaphelloreduce”,经过WordCount程序的Map函数处理后直接输出的中间结果,应该是下面哪种形式( )。 A: <"hello",1,1>、<"map",1>和<"reduce",1> B: <"hello",2>、<"map",1>和<"reduce",1> C: <"hello",<1,1>>、<"map",1>和<"reduce",1> D: <"hello",1>、<"hello",1>、<"map",1>和<"reduce",1>

    在使用MapReduce程序WordCount进行词频统计时,对于文本行“hellomaphelloreduce”,经过WordCount程序的Map函数处理后直接输出的中间结果,应该是下面哪种形式( )。 A: <"hello",1,1>、<"map",1>和<"reduce",1> B: <"hello",2>、<"map",1>和<"reduce",1> C: <"hello",<1,1>>、<"map",1>和<"reduce",1> D: <"hello",1>、<"hello",1>、<"map",1>和<"reduce",1>

  • 2022-05-28 问题

    dat <<= 1;表达式的功能为,将dat的值左移1位,然后再赋给dat变量。

    dat <<= 1;表达式的功能为,将dat的值左移1位,然后再赋给dat变量。

  • 1 2 3 4 5 6 7 8 9 10