单项选择题

已知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
相关试题
  • 有如下的程序; #include <ctring> ...
  • 有如下程序: #include <iostream> u...
  • 在下面的类定义中,横线处应填入的内容是_...
  • 有如下程序: #include <iostream> u...
  • 有如下程序: #include <iostream> u...