pos_type pubseekoff (off_type off, ios_base::seekdir way, ios_base::openmode which = ios_base::in | ios_base::out);
值 | 偏移量相對於... |
---|---|
ios_base::beg | 流緩衝區的開始 |
ios_base::cur | 流緩衝區中的當前位置 |
ios_base::end | 流緩衝區的末尾 |
值 | 受影響的位置指標 |
---|---|
ios_base::in | 修改 *受控輸入序列* 中的當前位置 |
ios_base::out | 修改 *受控輸出序列* 中的當前位置 |
-1
。
|
|
test.txt
的大小。