语言贪吃蛇源程序代码双人对抗.docVIP

  • 3
  • 0
  • 约9.18千字
  • 约 12页
  • 2018-09-19 发布于贵州
  • 举报
语言贪吃蛇源程序代码双人对抗

C语言贪吃蛇源程序代码双人对抗.txt第一次笑是因为遇见你,第一次哭是因为你不在,第一次笑着流泪是因为不能拥有你。#include stdio.h #include conio.h #include dos.h #include graphics.h #include stdlib.h #include bios.h #include time.h #include malloc.h #define LEFT 100 #define TOP 30 #define RIGHT 538 #define BOTTOM 468 #define SIZE 20 #define SL 100 /*SL表示产生食物的个数*/ typedef struct Snake/*表示蛇的结点*/ { int bx,by; struct Snake *next; }Snake,*SnakeList; SnakeList createsnake(int cx,int cy)/*创建一个蛇头。*/ { SnakeList l; l=(SnakeList)malloc(sizeof(Snake)); l-next=NULL; l-bx=cx; l-by=cy; return l; } void paintsnake(SnakeList l,int scoler,int tcol

文档评论(0)

1亿VIP精品文档

相关文档