which header file i need to include to use gotoxy() function?
<p>this is the student-report-card-project,
i got some problems when i shifted this code to the dev c++ from borland c.
now when i try to complile the program in dev c++, it gives the error message that the gotoxy() is not defined.
so which header file i need to include to use gotoxy() function?  </p>

<pre><code> //***************************************************************
    //                   HEADER FILE USED IN PROJECT
    //****************************************************************

    #include&lt;iostream&gt;
    #include&lt;graphics&gt;
    #include&lt;fstream&gt;
    #include&lt;iomanip&gt;
    using namespace std;

    //***************************************************************
    //                   CLASS USED IN PROJECT
    //****************************************************************

    class student
    {
     int rollno;
     char name[50];
     int p_marks,c_marks,m_marks,e_marks,cs_marks;
     float per;
     char grade;
     int std;
     void calculate()
    {
      per=(p_marks+c_marks+m_marks+e_marks+cs_marks)/5.0;
     if(per&gt;=60)
       grade='A';
     else if(per&gt;=50 &amp;&amp; per&lt;60)
      grade='B';
     else if(per&gt;=33 &amp;&amp; per&lt;50)
     grade='C';
    else
     grade='F';
    }
     public:
        void getdata()
        {
         cout&lt;&lt;"\nEnter The roll number of student ";
         cin&gt;&gt;rollno;
         cout&lt;&lt;"\n\nEnter The Name of student ";
         gets(name);
         cout&lt;&lt;"\nEnter The marks in physics out of 100 : ";
         cin&gt;&gt;p_marks;
         cout&lt;&lt;"\nEnter The marks in chemistry out of 100 : ";
         cin&gt;&gt;c_marks;
         cout&lt;&lt;"\nEnter The marks in maths out of 100 : ";
         cin&gt;&gt;m_marks;
         cout&lt;&lt;"\nEnter The marks in english out of 100 : ";
         cin&gt;&gt;e_marks;
         cout&lt;&lt;"\nEnter The marks in computer science out of 100 : ";
         cin&gt;&gt;cs_marks;
        calculate();
         }

        void showdata()
        {
         cout&lt;&lt;"\nRoll number of student : "&lt;&lt;rollno;
         cout&lt;&lt;"\nName of student : "&lt;&lt;name;
         cout&lt;&lt;"\nMarks in Physics : "&lt;&lt;p_marks;
         cout&lt;&lt;"\nMarks in Chemistry : "&lt;&lt;c_marks;
         cout&lt;&lt;"\nMarks in Maths : "&lt;&lt;m_marks;
         cout&lt;&lt;"\nMarks in English : "&lt;&lt;e_marks;
         cout&lt;&lt;"\nMarks in Computer Science :"&lt;&lt;cs_marks;
         cout&lt;&lt;"\nPercentage of student is  :"&lt;&lt;setprecision(2)&lt;&lt;per;
         cout&lt;&lt;"\nGrade of student is :"&lt;&lt;grade;
         }

         void show_tabular()
         {
         cout&lt;&lt;rollno&lt;&lt;setw(12)&lt;&lt;name&lt;&lt;setw(10)&lt;&lt;p_marks&lt;&lt;setw(3)&lt;&lt;c_marks&lt;&lt;setw(3)&lt;&lt;m_marks&lt;&lt;setw(3)&lt;&lt;e_marks&lt;&lt;setw(3)&lt;&lt;cs_marks&lt;&lt;setw(6)&lt;&lt;setprecision(3)&lt;&lt;per&lt;&lt;"   "&lt;&lt;grade&lt;&lt;endl;
         }

      int  retrollno()
      {return rollno;}

    };         //class ends here



    //***************************************************************
    //      global declaration for stream object, object
    //****************************************************************

     fstream fp;
     student st;

    //***************************************************************
    //      function to write in file
    //****************************************************************

    void write_student()
       {
        fp.open("student.dat",ios::out|ios::app);
        st.getdata();
        fp.write((char*)&amp;st,sizeof(student));
        fp.close();
        cout&lt;&lt;"\n\nstudent record Has Been Created ";
        system("pause");
       }


    //***************************************************************
    //      function to read all records from file
    //****************************************************************


    void display_all()
    {
        cout&lt;&lt;"\n\n\n\t\tDISPLAY ALL RECORD !!!\n\n";
        fp.open("student.dat",ios::in);
        while(fp.read((char*)&amp;st,sizeof(student)))
        {
         st.showdata();
         cout&lt;&lt;"\n\n====================================\n";
         system("pause");
         }
        fp.close();
        system("pause");
    }


    //***************************************************************
    //      function to read specific record from file
    //****************************************************************


    void display_sp(int n)
    {
        int flag=0;
        fp.open("student.dat",ios::in);
        while(fp.read((char*)&amp;st,sizeof(student)))
        {
         if(st.retrollno()==n)
            {
             st.showdata();
             flag=1;
            }
        }
        fp.close();
    if(flag==0)
     cout&lt;&lt;"\n\nrecord not exist";
    system("pause");
    }


    //***************************************************************
    //      function to modify record of file
    //****************************************************************


    void modify_student()
    {
        int no,found=0;
        cout&lt;&lt;"\n\n\tTo Modify ";
        cout&lt;&lt;"\n\n\tPlease Enter The roll number of student";
        cin&gt;&gt;no;
        fp.open("student.dat",ios::in|ios::out);
        while(fp.read((char*)&amp;st,sizeof(student)) &amp;&amp; found==0)
           {
            if(st.retrollno()==no)
               {
                st.showdata();
                cout&lt;&lt;"\nPlease Enter The New Details of student"&lt;&lt;endl;
                st.getdata();
                int pos=-1*sizeof(st);
                fp.seekp(pos,ios::cur);
                fp.write((char*)&amp;st,sizeof(student));
                cout&lt;&lt;"\n\n\t Record Updated";
                found=1;
               }
             }
        fp.close();
        if(found==0)
        cout&lt;&lt;"\n\n Record Not Found ";
        system("pause");
    }


    //***************************************************************
    //      function to delete record of file
    //****************************************************************


    void delete_student()
       {
        int no;
        cout&lt;&lt;"\n\n\n\tDelete Record";
        cout&lt;&lt;"\n\nPlease Enter The roll number of student You Want To Delete";
        cin&gt;&gt;no;
        fp.open("student.dat",ios::in|ios::out);
        fstream fp2;
        fp2.open("Temp.dat",ios::out);
        fp.seekg(0,ios::beg);
        while(fp.read((char*)&amp;st,sizeof(student)))
        {
         if(st.retrollno()!=no)
            {
             fp2.write((char*)&amp;st,sizeof(student));
             }
         }
        fp2.close();
        fp.close();
        remove("student.dat");
        rename("Temp.dat","student.dat");
        cout&lt;&lt;"\n\n\tRecord Deleted ..";
        system("pause");
        }


    //***************************************************************
    //      function to display all students grade report
    //****************************************************************

        void class_result()
        {
         fp.open("student.dat",ios::in);
         if(!fp)
         {
           cout&lt;&lt;"ERROR!!! FILE COULD NOT BE OPEN\n\n\n Go To Entry Menu to create File";
           cout&lt;&lt;"\n\n\n Program is closing ....";
           exit(0);
         }

         cout&lt;&lt;"\n\n\t\tALL STUDENTS RESULT \n\n";
          cout&lt;&lt;"====================================================\n";
          cout&lt;&lt;"Roll No. Name          P  C  M  E  CS  %age Grade\n";
          cout&lt;&lt;"====================================================\n";

          while(fp.read((char*)&amp;st,sizeof(student)))
         {
           st.show_tabular();
        }
         fp.close();
         system("pause");
    }




    //***************************************************************
    //      function to display result menu
    //****************************************************************

       void result()
       {
        int ans,rno;
        char ch;
        cout&lt;&lt;"\n\n\nRESULT MENU";
        cout&lt;&lt;"\n\n\n1. Class Result\n\n2. Student Report Card\n\n3.Back to Main Menu";
        cout&lt;&lt;"\n\n\nEnter Choice (1/2)? ";
        cin&gt;&gt;ans;
        switch(ans)
        {
         case 1 : class_result();break;
         case 2 : {
            do{
            char ans;
            cout&lt;&lt;"\n\nEnter Roll Number Of Student : ";
            cin&gt;&gt;rno;
            display_sp(rno);
            cout&lt;&lt;"\n\nDo you want to See More Result (y/n)?";
            cin&gt;&gt;ans;
            }while(ans=='y'||ans=='Y');

            break;
               }
         case 3: break;
         default:  cout&lt;&lt;"\a";
        }
     }

    //***************************************************************
    //      INTRODUCTION FUNCTION
    //****************************************************************

    void intro()
    {
     gotoxy(35,11);
     cout&lt;&lt;"STUDENT";
     gotoxy(33,14);
     cout&lt;&lt;"REPORT CARD";
     gotoxy(35,17);
     cout&lt;&lt;"PROJECT";
     cout&lt;&lt;"\n\nMADE BY : SULABH AGRAWAL";
     cout&lt;&lt;"\n\nSCHOOL : CAMBRIDGE SCHOOL";
     system("pause");

    }




    //***************************************************************
    //      ENTRY / EDIT MENU FUNCTION
    //****************************************************************
    void entry_menu()
    {
      char ch2;
      cout&lt;&lt;"\n\n\n\tENTRY MENU";
      cout&lt;&lt;"\n\n\t1.CREATE STUDENT RECORD";
      cout&lt;&lt;"\n\n\t2.DISPLAY ALL STUDENTS RECORDS";
      cout&lt;&lt;"\n\n\t3.SEARCH STUDENT RECORD ";
      cout&lt;&lt;"\n\n\t4.MODIFY STUDENT RECORD";
      cout&lt;&lt;"\n\n\t5.DELETE STUDENT RECORD";
      cout&lt;&lt;"\n\n\t6.BACK TO MAIN MENU";
      cout&lt;&lt;"\n\n\tPlease Enter Your Choice (1-6) ";
      ch2=getche();
      switch(ch2)
      {
        case '1': clrscr();
              write_student();
              break;
        case '2': display_all();break;
        case '3':
               int num;
               clrscr();
               cout&lt;&lt;"\n\n\tPlease Enter The roll number ";
               cin&gt;&gt;num;
               display_sp(num);
               break;
          case '4': modify_student();break;
          case '5': delete_student();break;
          case '6': break;
          default:cout&lt;&lt;"\a";entry_menu();
       }
    }


    //***************************************************************
    //      THE MAIN FUNCTION OF PROGRAM
    //****************************************************************


    int main()
    {
      char ch;
      intro();
      do
        {
          clrscr();
          cout&lt;&lt;"\n\n\n\tMAIN MENU";
          cout&lt;&lt;"\n\n\t01. RESULT MENU";
          cout&lt;&lt;"\n\n\t02. ENTRY/EDIT MENU";
          cout&lt;&lt;"\n\n\t03. EXIT";
          cout&lt;&lt;"\n\n\tPlease Select Your Option (1-3) ";
          ch=getche();
          switch(ch)
          {
             case '1': clrscr();
                   result();
                   break;
              case '2': entry_menu();
                    break;
              case '3':exit(0);
              default :cout&lt;&lt;"\a";
        }
        }while(ch!='3');
        return 0;
    }

    //***************************************************************
    //              END OF PROJECT
    //***************************************************************
</code></pre>
