谢谢..................
就交了........没人帮帮我吗?例如用这种格式编的............同学只给了一少部分 #define E 101 #define BACK1 49 #define BACK2 50 #define S 115 #define D 100 #define F 102 #define Q 113 #define H 104 #define N 110 #define UP 72 #define DOWN 80 #define LEFT 75 #define RIGHT 77 #define ENTER '\r' #define SPACE 32 #define ESC 27 #include "stdio.h" #include "graphics.h" int x1=193,y1=45,x2=613,y2=465; int q1=193,w1=45,q2=213,w2=65; int qp[22][21],h,l,u,u1=0,n1=1,wiy=0;
void d_bar(int a3,int b3,int a4,int b4,int mode,int color) { setfillstyle(mode,color); bar(a3,b3,a4,b4);}
void qz(int a1,int b1,int c1) {setcolor(1); circle(a1,b1,c1); setfillstyle(1,1); floodfill(a1,b1,1);}
void winner(int n) { int h1,l1;h1=h,l1=l;u=1; while(qp[h-1][l]==n) { if(h==0)break; u++;h--;}.............8
l=l1; if(u>=5)return; }
while ((inkey=getch())!=27) { switch(inkey) {case E: if(n!=1){break;} if(w1<=45)break; setcolor(6); rectangle(q1,w1,q2,w2); setcolor(15); rectangle(q1,w1-20,q2,w2-20); w1=w1-20;w2=w2-20;h--; break;
case ENTER: if(n!=0){break;} if(qp[h][l]!=0||qp[h][l]==2)break; n++;n=n%2; qz(q1+10,w1+10,8); qp[h][l]=1; qz2();
winner(1); if(u>=5)win(1); n=1; break;
main() {int driver=VGA,mode=DETECT,*p="Welcome to play!!!",i; int n=0,inkey,inkey1,i1,j,k,b; initgraph(VGA,VGAHI,""); setbkcolor(14); for(i=0;i<=10;i++) {setcolor(i); if(i==10) setcolor(9); settextstyle(0,0,4); outtextxy(40,20,p); setcolor(5); }x