注册 登录
编程论坛 C++教室

简单语句解释

兜兜的ideas 发布于 2017-03-23 21:22, 1238 次点击
infile.seekg( 5,ios ::beg)什么意思,非常感谢,跪求。
2 回复
#2
rjsp2017-03-24 08:22
C++函数千千万万,难道你一个个的问?
当然是自己查函数手册啦,
http://en.
basic_istream& seekg( off_type off, std::ios_base::seekdir dir);

off     -     relative position to set the input position indicator to.
dir     -     defines base position to apply the relative offset to. It can be one of the following constants:
        beg     the beginning of a stream
        end     the ending of a stream
        cur     the current position of stream position indicator

#3
兜兜的ideas2017-03-24 09:37
回复 2楼 rjsp
谢谢,建议。
1