fIn.seekg(1,ios::cur)在BCB5和BCB6中有区别吗?

wsansan 2002-11-05 06:10:30
程序段如下:
ifstream fIn;
ofstream fOut;
float iRead;
char cRead[256];
int SetLineCount;

fIn.open("doc\\test.txt");
fOut.open("doc\\writetest.txt");

if(!fIn) {
ShowMessage("数据文件不能打开!");
return ;
}

//read the first'='.
fIn.get(cRead,127,'=');
fIn.seekg(1,ios::cur);
在BCB5中,通过fIn.seekg(1,ios::cur)可以移动一位,而在BCB6中不能转动,为什么?
...全文
69 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
mynameis007 2002-11-05
  • 打赏
  • 举报
回复
真的吗..不会吧...

13,825

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder相关内容讨论区
社区管理员
  • 基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧