我有一个 CPP (c++) 程序,当我编译它时出现错误...
错误: 包含 while 的函数未内联扩展。while 语句中可能有什么问题?
这些是我正在使用的头文件。
#include<iostream.h>
#include<stdio.h>
#include<string.h>
#include<iomanip.h>
#include<conio.h>
#include<process.h>
#include<fstream.h>
 void query(long unsigned int en)
{
  int found=0;
  ifstream infile("student.dat");
  /* read the record */
  while(infile.read((char *)this,sizeof(student)))
{
  if(e_no==en)
  {
  found=1;
  query_list();
  gotoxy(26,4);
  cout<<"Query Output";
  gotoxy(35,7);
  cout<<e_no;
  gotoxy(35,8);
  cout<<name;
  fflush(stdin);
  getch();
}
  }//end of while
if(!found){clrscr();
  cout<<"Enrolment No. not found";
  getch();}
  infile.close();
}//end of query