贪吃蛇代码-C语-VC++6.0.docVIP

  • 26
  • 0
  • 约6.59千字
  • 约 6页
  • 2016-10-09 发布于贵州
  • 举报
贪吃蛇代码-C语-VC6.0

/*这是一个贪吃蛇代码,运行环境VC++6.0(亲测完美运行)*/ /*该程序在dos系统下运行,不需要graphics.h头文件*/ /*该程序由C语言小方贡献,谢谢您的支持*/ #include windows.h #include stdlib.h #include time.h #include stdio.h #include string.h #include conio.h #define N 21 int apple[3]; char score[3]; char tail[3]; void gotoxy(int x, int y) //输出坐标 { COORD pos; pos.X = x; pos.Y = y; SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), pos); } void color(int b) //颜色函数 { HANDLE hConsole = GetStdHandle((STD_OUTPUT_HANDLE)) ; SetConsoleTextAttribute(hConsole,b) ; } int Block(char head[2])

文档评论(0)

1亿VIP精品文档

相关文档