帮我看看这段代码。谢谢
wiw 2002-12-26 06:12:55 //---------------------------------------------------------------------------
#include <fstream.h>
#include <conio.h>
#pragma hdrstop
//---------------------------------------------------------------------------
#pragma argsused
int main(int argc, char* argv[])
{
char buff[80];
ifstream infile("c:\\sa.txt");
if(!infile)
{cout<<"打开文件失败";
return 0;
}
while(!infile.eof())
{
infile.getline(buff,sizeof(buff));
cout<<buff<<endl;
}
infile.close();
cout<<endl<<"press any key to continue...";
getch();
return 0;
}
//---------------------------------------------------------------------------
这代码有什么错?