title: error in while statement - function containing while are not expanded inline
body: <p>I have a CPP (c++) program and when i am compiling it is giving ma error...</p>
  
  <p>Error :   <strong>Function containing while are not expanded inline</strong>.
  what could be the problem in while statement ?</p>
  
  <p>these are the headers file which i am using.</p>
  
  <pre><code>#include&lt;iostream.h&gt;
  #include&lt;stdio.h&gt;
  #include&lt;string.h&gt;
  #include&lt;iomanip.h&gt;
  #include&lt;conio.h&gt;
  #include&lt;process.h&gt;
  #include&lt;fstream.h&gt;
  
  
  
  
   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&lt;&lt;"Query Output";
    gotoxy(35,7);
    cout&lt;&lt;e_no;
    gotoxy(35,8);
    cout&lt;&lt;name;
    fflush(stdin);
    getch();
  }
    }//end of while
  if(!found){clrscr();
    cout&lt;&lt;"Enrolment No. not found";
    getch();}
    infile.close();
  }//end of query
  </code></pre>