摘要:
近来,使用C++输出一组数据到文件(*.txt). 需要在输出全部结果后,返回到文件头重新写入一组数据. 使用seekp函数定位到相关位置: seekp函数有两种情况,主要是:basic_ostream<_Elem, _Tr>& seekp( pos_type _Pos ); basic_ostream<_Elem, _Tr>& seekp( off_type _Off, ios_base::seekdir _Way );其中:_Pos The position in the stream._Off The offset relative to _Way 阅读全文
posted @ 2012-03-13 17:03
gaoxw0511
阅读(1511)
评论(0)
推荐(0)

浙公网安备 33010602011771号