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

前端 未结 7 2063
夕颜
夕颜 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:09

    You could write it on your own:

    void gotoxy(int x, int y)
    {
        COORD c = { x, y };  
        SetConsoleCursorPosition(  GetStdHandle(STD_OUTPUT_HANDLE) , c);
    }
    

提交回复
热议问题