A、若文件存在,打开失败;若文件不存在,建立一个新文件
B、若文件存在,将文件写指针定位于文件首;若文件不存在,建立一个新文件
C、若文件存在,将其置为空文件;若文件不存在,打开失败
D、若文件存在,将文件写指针定位于文件末尾;若文件不存在,建立一个新文件
A、ios::in | ios::out
B、都不对
C、ios::in
D、ios::out
A、x是一个变量
B、endl的作用是输出回车换行
C、cout是一个输出流对象
D、<<称为提取运算符
A、错
B、对
A、错
B、对
A、错
B、对
A、fstream
B、ostrstream
C、ofstream
D、strstream
A、一个字符
B、当前字符
C、指定若干个字节
D、一行字符
A、ifstream.h
B、iostream.h
C、ofstream.h
D、fstream.h
A、ifstream infile(“
D、\\file.dat”, ios::in)
B、ofstream infile(“
D、\\file.dat”, ios::out)
C、fstream infile(“
D、\\file.dat”, ios::in)
D、fstream infile(“
D、\\file.dat”, ios::in | ios::out)