单项选择题
已知outfile 是一个输出流对象,要想将outfile 的文件指针定位到当前位置之前321字节处,正确的函数调用语句是______ 。
A.outfile.seekp (321, ios_ base:: cur);
B.outfile.seekp (321,ios_ base:: beg);
C.outfile.seekp (-321,ios_ base:: beg);
D.outfile.seekp (-321,ios_ base:: cur);
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
有如下程序: #include <iostream> using namespace std; class Demo public: Demo () cout << default constructor n ; Demo (const Demo &x) cout << copy constructor ; ; Demo userCode(Demo b) Demo c(b);return c; int main() Demo a,d; cout<< calling userCode() n ; d=aserCode(
A.;
ret
点击查看答案&解析
单项选择题
有如下程序: #include <iostream> using namespace std; class Base public: Base() cout<< BB ;f(); void f() cout<< Bf ; ; class Derived:public Base public: Derived() cout<< DD ; void f() cout<< Df ; ; int main() Derived d; return 0;执行上面的程序将输出______ 。
A.BBBfDD
B.BBDfDDDf
C.DD
D.DDBBBf
点击查看答案&解析
相关试题
在下面函数的横线处填上适当的内容使该函数...
以下函数模板max 的功能是返回数组a中最大...
Staff类含有血型数据成员ID,两个Staff 对...
下面程序的执行结果是 【15】 。 #in...
在下面程序的横线处填上适当的内容,使程序...