C语言飞机大战源码.docVIP

  • 23
  • 0
  • 约1.14万字
  • 约 16页
  • 2019-12-19 发布于安徽
  • 举报
.. 优质范文 #includeiostream #includewindows.h #includeconio.h #includetime.h #includestring using namespace std; /*=============== all the structures ===============*/ typedef struct Frame { COORD position[2]; int flag; }Frame; /*=============== all the functions ===============*/ void SetPos(COORD a)// set cursor { HANDLE out=GetStdHandle(STD_OUTPUT_HANDLE); SetConsoleCursorPosition(out, a); } void SetPos(int i, int j)// set cursor { COORD pos={i, j}; SetPos(pos); } void HideCursor() { CONSOLE_CURSOR_INFO cursor_info = {1, 0}; SetConsoleCursorInfo(GetStdHandle(STD_OUTPUT_HANDLE), cur

文档评论(0)

1亿VIP精品文档

相关文档