有可能delay()函数里的数字大家要自己调整下.基本的结构因为完善了.#include "graphics.h" #include "stdlib.h" #define LEFT 0x4b00 #define RIGHT 0x4d00 #define DOWN 0x5000 #define UP 0x4800 #define ESC 0x011b int lose=0,i,j; int gd=DETECT,gr,x[200]=,y[200]=; int key,t=1,n=4,s=0,xx,yy,yes=1; int score[8]=; begain()/*开始画面*/