单选题
C++
题号 #2657808
当使用ifstream定义一个文件流,并将一个打开文件的文件与之连接,文件默认的打开方式为( )。
参考答案
A
答案解析
略
你可能感兴趣的试题
A.file.read(reinterpret_cast<const char *>(&c), sizeof(c));
B.file.read(reinterpret_cast<char *>(&c), sizeof(c));
C.file.read((const char *)(&c), sizeof(c));
D.file.read((char *)c, sizeof(c);
A.file.write(reinterpret_cast<const char *>(&c), sizeof(c));
B.file.write(reinterpret_cast<char *>(&c), sizeof(c));
C.file.write((char *)(&c), sizeof(c));
D.file.write((const char *)c, sizeof(c));
A.myfile.seekg(1,ios::end);
c=myfile.get();
c=myfile.get();
B.myfile.seekg(-1,ios::end);
c=myfile.get();
c=myfile.get();
C.myfile.seekp(ios::end,0);
c=myfile.get();
c=myfile.get();
D.myfileseekp(ios::end,1);
c=myfile.get();
c=myfile.get();