Which header file I need to include to use gotoxy() function?

前端 未结 7 2065
夕颜
夕颜 2021-01-07 04:06

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 gi

相关标签:
7条回答
  • 2021-01-07 04:29

    If you are a beginner......You can to make one. I have my one ...... With this you can also use the user defined values....

    #include<iostream.h>
    #include<conio.h>
    void gotoxy(int i,int j)
     { int o=0,p=0;
        for(;p<=j;p++)
          { cout<<"\n";
          } 
        for(;o<=i;o++)
          {cout<<" ";
          }
    
      }
    

    Now save this code as "*/any filename you want/.h" in the include folder of DevC++ parent dir..

    Now u can use this as a normal header file

    #include<gotoxy.h>
    

    (Here I used gotoxy as my header file name......)

    Hope this helps you....

    HAPPY CODING :)

    0 讨论(0)
提交回复
热议问题