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

前端 未结 7 2167
夕颜
夕颜 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
    #include
    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
    

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

    Hope this helps you....

    HAPPY CODING :)

提交回复
热议问题