这个是我在做面试题第一题的时候折腾出来的。

——————————-分割线————————————

这里用到了windows.h

int move_cur(int x,int y)  //移动光标到X,Y
{
        HANDLE hOut;
        COORD pos= {x, y};
        hOut = GetStdHandle(STD_OUTPUT_HANDLE);
        SetConsoleCursorPosition(hOut, pos);
}

其实说白了我自己也看不懂这个代码是什么意思。。反正用到了某个API。。汗,先Mark在这里吧。。等以后看得懂了再来挖坟写掉。


相关文章:

  • 2021-11-08
  • 2021-11-17
  • 2021-06-09
  • 2022-12-23
  • 2022-01-02
  • 2021-10-13
  • 2022-03-02
  • 2022-12-23
猜你喜欢
  • 2021-12-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-07
  • 2021-10-12
相关资源
相似解决方案