fIn.seekg(1,ios::cur)在BCB5和BCB6中有区别吗?
程序段如下:
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中不能转动,为什么?