单选题
C++
题号 #2255247
使用ifstream流类定义流对象并打开磁盘文件时,文件的隐含打开方式为( )。
参考答案
D
答案解析
D。【解析】使用ifstream流类定义流对象并打开磁盘文件时,文件没有默认的打开方式。其中ios::in是为输入而打开;iso::out是为输出而打开。
你可能感兴趣的试题
A.charstr[]={'a','b','e'}
B.charstr[2]={'a','b','e')
C.charstr[2][3]={{'a','b'},{'C','d'},{'e','f'}}
D.charstr()={'a','b','C'}
A.friendvoidf();
B.friendvoidf(x<T>);
C.friendvoidA::f();
D.friendvoidC<T>::f(x<T>);