某白的记忆吧 关注:9贴子:649
  • 11回复贴,共1
#include "graphics.h"
#include"math.h"
main( )
{
int driver,mode;
int x,y;
driver=DETECT;
initgraph(&driver,&mode," ");
setbkcolor(WHITE);
setcolor(BLUE);
rectangle(10,10,170,140);
rectangle(30,30,40,30);
rectangle(60,30,70,30);
rectangle(90,10,90,40);
rectangle(110,30,120,30);
rectangle(140,30,150,30);
rectangle(30,50,70,50);
rectangle(110,50,150,50);
rectangle(10,70,60,80);
rectangle(80,70,100,80);
rectangle(120,70,170,80);
rectangle(30,100,70,100);
rectangle(110,100,150,100);
rectangle(30,120,40,120);
rectangle(60,120,70,120);
rectangle(110,120,120,120);
rectangle(140,120,150,120);
getch( );
closegraph( );
}
边界数据待改动


IP属地:云南1楼2013-07-08 15:00回复
    扩大三倍后
    rectangle(30,30,510,420);
    rectangle(75,75,135,105);
    rectangle(165,75,225,105);
    rectangle(255,30,285,135);
    rectangle(315,75,375,105);
    rectangle(405,75,465,105);
    rectangle(75,135,225,165);
    rectangle(315,135,465,165);
    rectangle(30,195,195,255);
    rectangle(225,195,315,255);
    rectangle(345,195,510,255);
    rectangle(75,285,225,315);
    rectangle(315,285,465,315);
    rectangle(75,345,135,375);
    rectangle(165,345,225,375);
    rectangle(315,345,375,375);
    rectangle(415,345,465,375);


    IP属地:云南2楼2013-07-08 16:31
    收起回复
      2025-12-24 21:09:29
      广告
      不感兴趣
      开通SVIP免广告
      #include "graphics.h"
      #include"math.h"
      main( )
      {
      int driver,mode;
      int x,y=60,i,n=1;
      driver=DETECT;
      initgraph(&driver,&mode," ");
      setbkcolor(WHITE);
      setcolor(BLUE);
      rectangle(30,30,510,420);
      rectangle(75,75,135,105);
      rectangle(165,75,225,105);
      rectangle(255,30,285,135);
      rectangle(315,75,375,105);
      rectangle(405,75,465,105);
      rectangle(75,135,225,165);
      rectangle(315,135,465,165);
      rectangle(30,195,195,255);
      rectangle(225,195,315,255);
      rectangle(345,195,510,255);
      rectangle(75,285,225,315);
      rectangle(315,285,465,315);
      rectangle(75,345,135,375);
      rectangle(165,345,225,375);
      rectangle(315,345,375,375);
      rectangle(405,345,465,375);
      setcolor(RED);
      while(n<13)
      { i=1; n++;
      while(i<16)
      {
      circle(i*30+30,y,7) ;
      i++; }
      y=y+30;
      }
      getch( );
      closegraph( );
      }
      豆子设置完毕 待覆盖(


      IP属地:云南3楼2013-07-08 17:38
      回复
        #include "graphics.h"
        #include"math.h"
        main( )
        {
        int driver,mode;
        int x,y=60,i,n=1;
        driver=DETECT;
        initgraph(&driver,&mode," ");
        setbkcolor(WHITE);
        setcolor(BLUE);
        setfillstyle(1,BLUE);
        rectangle(30,30,510,420);
        bar(75,75,135,105);
        bar(165,75,225,105);
        bar(255,30,285,135);
        bar(315,75,375,105);
        bar(405,75,465,105);
        bar(75,135,225,165);
        bar(315,135,465,165); bar(30,195,195,255);
        bar(225,195,315,255); bar(345,195,510,255);
        bar(75,285,225,315);
        bar(315,285,465,315);
        bar(75,345,135,375);
        bar(165,345,225,375);
        bar(315,345,375,375);
        bar(405,345,465,375);
        while(n<13)
        { i=1; n++;
        while(i<16)
        {
        circle(i*30+30,y,1) ;
        i++; }
        y=y+30;
        }
        getch( );
        closegraph( );
        }
        您好,这是您要的麻子脸(


        IP属地:云南4楼2013-07-08 17:48
        回复
          #include "graphics.h"
          #include"math.h"
          main( )
          {
          int driver,mode;
          int x,y=60,i=1,n=1,x1,y1,a;
          driver=DETECT;
          initgraph(&driver,&mode," ");
          setbkcolor(WHITE);
          setcolor(BLUE);
          setfillstyle(1,BLUE);
          rectangle(30,30,510,420);
          bar(75,75,135,105);
          bar(165,75,225,105);
          bar(255,30,285,135);
          bar(315,75,375,105);
          bar(405,75,465,105);
          bar(75,135,225,165);
          bar(315,135,465,165); bar(30,195,195,255);
          bar(225,195,315,255); bar(345,195,510,255);
          bar(75,285,225,315);
          bar(315,285,465,315);
          bar(75,345,135,375);
          bar(165,345,225,375);
          bar(315,345,375,375);
          bar(405,345,465,375);
          while(n<13)
          { i=1; n++;
          while(i<16)
          {
          circle(i*30+30,y,1) ;
          i++; }
          y=y+30;
          }
          x1=270,y1=330;
          while(1)
          {
          setcolor(WHITE);
          setfillstyle(1,RED);
          fillellipse(x1,y1,15,15);
          a=bioskey(0);
          switch(a)
          { case 18432:y1=y1-30;setfillstyle(1,WHITE);fillellipse(x1,y1+30,15,15);break;
          case 20480:y1=y1+30;setfillstyle(1,WHITE);fillellipse(x1,y1-30,15,15);break;
          case 19200:x1=x1-30;setfillstyle(1,WHITE);fillellipse(x1+30,y1,15,15);break;
          case 19712:x1=x1+30;setfillstyle(1,WHITE);fillellipse(x1-30,y1,15,15);break;
          case 283:exit(-1);break;
          } }
          getch( );
          closegraph( );
          }
          这TM是圆的?(动是可以动了 只是动的不是圆,考虑把圆换为方块 下一步设定移动边界


          IP属地:云南5楼2013-07-08 18:27
          回复
            #include "graphics.h"
            #include"math.h"
            #include"conio.h"
            main( )
            {
            int driver,mode;
            int x,y=60,i=1,n=1,x1,y1,a;
            driver=DETECT;
            initgraph(&driver,&mode," ");
            setbkcolor(WHITE);
            setcolor(GREEN);
            setfillstyle(1,GREEN);
            rectangle(30,30,510,420);
            bar(75,75,140,105);
            bar(165,75,225,105);
            bar(255,30,285,135);
            bar(315,75,375,105);
            bar(405,75,465,105);
            bar(75,135,225,165);
            bar(315,135,465,165);
            bar(25,195,195,255);
            bar(230,195,315,255);
            bar(345,195,510,255);
            bar(75,285,225,315);
            bar(315,285,465,315);
            bar(75,345,140,375);
            bar(165,345,225,375);
            bar(315,345,375,375);
            bar(405,345,465,375);
            outtextxy(540,60,"point:");
            while(n<13)
            {
            i=1;
            n++;
            while(i<16)
            {
            circle(i*30+30,y,1) ;
            i++; }
            y=y+30;
            }
            x1=270,y1=330;
            while(1)
            {
            setcolor(WHITE);
            circle(x1,y1,1);
            setcolor(YELLOW);
            circle(x1,y1,13);
            a=bioskey(0);
            switch(a)
            {
            case 18432:if(y1<90)continue;
            while(y1>=90)
            {
            setcolor(WHITE);
            circle(x1,y1,1);
            setcolor(YELLOW);
            circle(x1,y1,13);
            delay(50000);
            y1=y1-30;setcolor(WHITE);circle(x1,y1+30,13);};break; case 20480:if(y1>370)continue;
            while(y1<=370)
            {setcolor(WHITE);
            circle(x1,y1,1);
            setcolor(YELLOW);
            circle(x1,y1,13);
            delay(50000);
            y1=y1+30;setcolor(WHITE);circle(x1,y1-30,13);}break; case 19200:if(x1<90)continue;
            while(x1>=90)
            {setcolor(WHITE);
            circle(x1,y1,1);
            setcolor(YELLOW);
            circle(x1,y1,13);
            delay(50000);
            x1=x1-30;setcolor(WHITE);circle(x1+30,y1,13);}break; case 19712:if(x1>460)continue;
            while(x1<=460)
            {setcolor(WHITE);
            circle(x1,y1,1);
            setcolor(YELLOW);
            circle(x1,y1,13);
            delay(50000);
            x1=x1+30;setcolor(WHITE);circle(x1-30,y1,13);}break; case 283:exit(-1);break;
            }
            }
            getch( );
            closegraph( );
            }
            自动行走部分可以重写了(。。。


            IP属地:云南6楼2013-07-09 15:25
            回复
              #include <stdio.h>
              #include <conio.h>
              #include<Windows.h>
              #include<time.h> void gotoxy(int x,int y)
              {
              COORD coord;
              coord.X=x;
              coord.Y=y;
              SetConsoleCursorPosition( GetStdHandle( STD_OUTPUT_HANDLE ), coord );
              } int main()
              {
              int c=1;
              char a=' ';
              int t=time(NULL);
              int x=10,y=10;
              while(a!='q')
              {
              while(kbhit()==0)
              if(t<time(NULL))
              {
              gotoxy(x,y);
              printf(" ");
              if(c==1)x--;
              if(c==2)x++;
              if(c==3)y--;
              if(c==4)y++;
              gotoxy(x,y);
              printf("a");
              t=time(NULL);
              }
              a=getch();
              if(a==75) c=1; //左
              if(a==77) c=2; //右
              if(a==72) c=3; //上
              if(a==80) c=4; //下
              }
              return(0);
              }
              让a自动行走。。。有得学了


              IP属地:云南7楼2013-07-09 15:25
              回复
                #include "graphics.h"
                #include"math.h"
                #include"conio.h"
                main( )
                {
                int driver,mode;
                int x,y=60,i=1,n=1,x1,y1,a,c=1,t; driver=DETECT;
                initgraph(&driver,&mode," ");
                setbkcolor(WHITE);
                setcolor(GREEN);
                setfillstyle(1,GREEN);
                rectangle(30,30,510,420);
                bar(75,75,140,105);
                bar(165,75,225,105);
                bar(255,30,285,135);
                bar(315,75,375,105);
                bar(405,75,465,105);
                bar(75,135,225,165);
                bar(315,135,465,165);
                bar(25,195,195,255);
                bar(230,195,315,255);
                bar(345,195,510,255);
                bar(75,285,225,315);
                bar(315,285,465,315);
                bar(75,345,140,375);
                bar(165,345,225,375);
                bar(315,345,375,375);
                bar(405,345,465,375);
                outtextxy(540,60,"point:");
                while(n<13)
                {
                i=1;
                n++;
                while(i<16)
                {
                circle(i*30+30,y,1) ;
                i++; }
                y=y+30;
                } x1=270,y1=330;
                a=bioskey(0);
                while(a!=283)
                {
                while(kbhit()==0)
                {
                setcolor(YELLOW);
                circle(x1,y1,15);
                if(c==1)y1=y1-30;
                if(c==2)y1=y1+30;
                if(c==3)x1=x1-30;
                if(c==4)x1=x1+30;
                delay(50000);
                }
                a=bioskey(0);
                if(a==18432) c=1;
                if(a==20480) c=2;
                if(a==19200) c=3;
                if(a==19712) c=4;
                }
                return 0; getch( );
                closegraph( );
                }
                可以自动移动了orz 接下来要设定边界还有小怪(


                IP属地:云南8楼2013-07-09 16:08
                回复
                  2025-12-24 21:03:29
                  广告
                  不感兴趣
                  开通SVIP免广告
                  #include "graphics.h"
                  #include"math.h"
                  #include"conio.h"
                  main( )
                  {
                  int driver,mode;
                  int x,y=60,i=1,n=1,x1,y1,a,c=1,t; driver=DETECT;
                  initgraph(&driver,&mode," ");
                  setbkcolor(WHITE);
                  setcolor(GREEN);
                  setfillstyle(1,GREEN);
                  rectangle(30,30,510,420);
                  bar(75,75,140,105);
                  bar(165,75,225,105);
                  bar(255,30,285,135);
                  bar(315,75,375,105);
                  bar(405,75,465,105);
                  bar(75,135,225,165);
                  bar(315,135,465,165);
                  bar(25,195,195,255);
                  bar(230,195,315,255);
                  bar(345,195,510,255);
                  bar(75,285,225,315);
                  bar(315,285,465,315);
                  bar(75,345,140,375);
                  bar(165,345,225,375);
                  bar(315,345,375,375);
                  bar(405,345,465,375);
                  outtextxy(540,60,"point:");
                  while(n<13)
                  {
                  i=1;
                  n++;
                  while(i<16)
                  {
                  circle(i*30+30,y,1) ;
                  i++; }
                  y=y+30;
                  }
                  x1=270,y1=330;
                  setcolor(YELLOW);
                  circle(x1,y1,13);
                  setcolor(WHITE);
                  circle(x1,y1,1);
                  a=bioskey(0); while(a!=283)
                  { while(kbhit()==0)
                  { if(c==1)
                  {if(y1<90||y1==120&&x1>75&&x1<140||y1==120&&x1>165&&x1<225||y1==120&&x1>315&&x1<375||y1==120&&x1>405&&x1<465||y1==150&&x1==270||y1==180&&x1>75&&x1<225||y1==180&&x1>315&&x1<465||y1==270&&x1<195||y1==270&&x1>225&&x1<315||y1==270&&x1>345||y1==330&&x1>75&&x1<225||y1==330&&x1>315&&x1<465||y1==390&&x1==90||y1==390&&x1==120||y1==390&&x1>165&&x1<225||y1==390&&x1>315&&x1<375||y1==390&&x1>405&&x1<465)continue;
                  circle(x1,y1,13);y1=y1-30;setcolor(YELLOW);
                  circle(x1,y1,13);
                  setcolor(WHITE);
                  circle(x1,y1,1);}
                  if(c==2)
                  {if(y1>370||y1==60&&x1>75&&x1<140||y1==60&&x1>165&&x1<225||y1==60&&x1>315&&x1<375||y1==60&&x1>405&&x1<465||y1==120&&x1>75&&x1<225||y1==120&&x1>315&&x1<465||y1==180&&x1<195||y1==180&&x1>225&&x1<315||y1==180&&x1>345||y1==270&&x1>75&&x1<225||y1==270&&x1>315&&x1<465||y1==330&&x1==90||y1==330&&x1==120||y1==330&&x1>165&&x1<225||y1==330&&x1>315&&x1<375||y1==330&&x1>405&&x1<465)continue;
                  circle(x1,y1,13);y1=y1+30;setcolor(YELLOW);
                  circle(x1,y1,13);
                  setcolor(WHITE);
                  circle(x1,y1,1);}
                  if(c==3)
                  {if(x1<90||x1==300&&y1<135||x1==150&&y=90)continue;
                  circle(x1,y1,13);x1=x1-30;setcolor(YELLOW);
                  circle(x1,y1,13);
                  setcolor(WHITE);
                  circle(x1,y1,1);}
                  if(c==4)
                  {if(x1>460)continue;
                  circle(x1,y1,13);x1=x1+30;setcolor(YELLOW);
                  circle(x1,y1,13);
                  setcolor(WHITE);
                  circle(x1,y1,1);}
                  delay(10000000);
                  }
                  a=bioskey(0);
                  if(a==18432) c=1;
                  if(a==20480) c=2;
                  if(a==19200) c=3;
                  if(a==19712) c=4;
                  }
                  return 0; getch( );
                  closegraph( );
                  }
                  靠你妹的泰语。。。


                  IP属地:云南9楼2013-07-09 18:23
                  回复
                    #include "graphics.h"
                    #include"math.h"
                    #include"conio.h"
                    main( )
                    {
                    int driver,mode;
                    int x,y=60,i=1,n=1,x1,y1,a,c=1,t; driver=DETECT;
                    initgraph(&driver,&mode," ");
                    setbkcolor(WHITE);
                    setcolor(GREEN);
                    setfillstyle(1,GREEN);
                    rectangle(30,30,510,420);
                    bar(75,75,140,105);
                    bar(165,75,225,105);
                    bar(255,30,285,135);
                    bar(315,75,375,105);
                    bar(405,75,465,105);
                    bar(75,135,225,165);
                    bar(315,135,465,165);
                    bar(25,195,195,255);
                    bar(230,195,315,255);
                    bar(345,195,510,255);
                    bar(75,285,225,315);
                    bar(315,285,465,315);
                    bar(75,345,140,375);
                    bar(165,345,225,375);
                    bar(315,345,375,375);
                    bar(405,345,465,375);
                    outtextxy(540,60,"point:");
                    while(n<13)
                    {
                    i=1;
                    n++;
                    while(i<16)
                    {
                    circle(i*30+30,y,1) ;
                    i++; }
                    y=y+30;
                    }
                    x1=270,y1=330;
                    setcolor(YELLOW);
                    circle(x1,y1,13);
                    setcolor(WHITE);
                    circle(x1,y1,1);
                    a=bioskey(0); while(a!=283)
                    { while(kbhit()==0)
                    { if(c==1)
                    {if(y1<90||y1==120&&x1>75&&x1<140||y1==120&&x1>165&&x1<225||y1==120&&x1>315&&x1<375||y1==120&&x1>405&&x1<465||y1==150&&x1==270||y1==180&&x1>75&&x1<225||y1==180&&x1>315&&x1<465||y1==270&&x1<195||y1==270&&x1>225&&x1<315||y1==270&&x1>345||y1==330&&x1>75&&x1<225||y1==330&&x1>315&&x1<465||y1==390&&x1==90||y1==390&&x1==120||y1==390&&x1>165&&x1<225||y1==390&&x1>315&&x1<375||y1==390&&x1>405&&x1<465)continue;
                    circle(x1,y1,13);y1=y1-30;setcolor(YELLOW);
                    circle(x1,y1,13);
                    setcolor(WHITE);
                    circle(x1,y1,1);}
                    if(c==2)
                    {if(y1>370||y1==60&&x1>75&&x1<140||y1==60&&x1>165&&x1<225||y1==60&&x1>315&&x1<375||y1==60&&x1>405&&x1<465||y1==120&&x1>75&&x1<225||y1==120&&x1>315&&x1<465||y1==180&&x1<195||y1==180&&x1>225&&x1<315||y1==180&&x1>345||y1==270&&x1>75&&x1<225||y1==270&&x1>315&&x1<465||y1==330&&x1==90||y1==330&&x1==120||y1==330&&x1>165&&x1<225||y1==330&&x1>315&&x1<375||y1==330&&x1>405&&x1<465)continue;
                    circle(x1,y1,13);y1=y1+30;setcolor(YELLOW);
                    circle(x1,y1,13);
                    setcolor(WHITE);
                    circle(x1,y1,1);}
                    if(c==3)
                    {if(x1<90||x1==300&&y1<135||x1==150&&y==90||x1==150&&y1==360||x1==240&&y1==90||x1==240&&y1==150||x1==240&&y1==300||x1==240&&y1==360||x1==210&&y1>195&&y1<255||x1==390&&y1==90||x1==390&&y1==360||x1==480&&y1==90||x1==480&&y1==150||x1==480&&y1==300||x1==480&&y1==360||x1==330&&y1>195&&y1<255)continue;
                    circle(x1,y1,13);x1=x1-30;setcolor(YELLOW);
                    circle(x1,y1,13);
                    setcolor(WHITE);
                    circle(x1,y1,1);}
                    if(c==4)
                    {if(x1>460||x1==240&&y1<135||x1==150&&y==90||x1==150&&y1==360||x1==60&&y1==90||x1==60&&y1==150||x1==60&&y1==300||x1==60&&y1==360||x1==330&&y1>195&&y1<255||x1==390&&y1==90||x1==390&&y1==360||x1==300&&y1==90||x1==300&&y1==150||x1==300&&y1==300||x1==300&&y1==360||x1==210&&y1>195&&y1<255)continue;
                    circle(x1,y1,13);x1=x1+30;setcolor(YELLOW);
                    circle(x1,y1,13);
                    setcolor(WHITE);
                    circle(x1,y1,1);}
                    delay(10000000);
                    }
                    a=bioskey(0);
                    if(a==18432) c=1;
                    if(a==20480) c=2;
                    if(a==19200) c=3;
                    if(a==19712) c=4;
                    }
                    return 0; getch( );
                    closegraph( );
                    }


                    IP属地:云南10楼2013-07-10 14:34
                    回复
                      #include "graphics.h"
                      #include"math.h"
                      #include"conio.h"
                      main( )
                      {
                      int driver,mode;
                      int x,y=60,i=1,n=1,x1,y1,a,c=1,sum=0,x2,y2;
                      driver=DETECT;
                      initgraph(&driver,&mode," ");
                      setbkcolor(WHITE);
                      setcolor(GREEN);
                      setfillstyle(1,GREEN);
                      rectangle(30,30,510,420);
                      bar(75,75,140,105);
                      bar(165,75,225,105);
                      bar(255,30,285,135);
                      bar(315,75,375,105);
                      bar(405,75,465,105);
                      bar(75,135,225,165);
                      bar(315,135,465,165);
                      bar(25,195,195,255);
                      bar(230,195,315,255);
                      bar(345,195,510,255);
                      bar(75,285,225,315);
                      bar(315,285,465,315);
                      bar(75,345,140,375);
                      bar(165,345,225,375);
                      bar(315,345,375,375);
                      bar(405,345,465,375);
                      outtextxy(540,60,"point:");
                      while(n<13)
                      {
                      i=1;
                      n++;
                      while(i<16)
                      {
                      circle(i*30+30,y,1) ;
                      i++; }
                      y=y+30;
                      }
                      x1=270,y1=330,x2=60,y2=60;
                      setcolor(YELLOW);
                      circle(x1,y1,13);
                      setcolor(WHITE);
                      circle(x1,y1,1);
                      circle(x2,y2,1);
                      setcolor(RED);
                      circle(x2,y2,13);
                      a=bioskey(0);
                      while(a!=283)
                      {
                      if(x1==x2&&y1==y2)
                      a=283;
                      else
                      setcolor(WHITE);
                      circle(x2,y2,13);
                      circle(x2,y2,1);
                      if(x1>x2)
                      x2=x2+30;
                      if(x1<x2)
                      x2=x2-30;
                      if(y1>y2)
                      y2=y2+30;
                      if(y1<y2)
                      y2=y2-30; setcolor(RED);
                      circle(x2,y2,13);
                      setcolor(WHITE);
                      circle(x2,y2,1);
                      while(kbhit()==0)
                      {
                      if(c==1)
                      {if(y1<90||y1==120&&x1>75&&x1<140||y1==120&&x1>165&&x1<225||y1==120&&x1>315&&x1<375||y1==120&&x1>405&&x1<465||y1==150&&x1==270||y1==180&&x1>75&&x1<225||y1==180&&x1>315&&x1<465||y1==270&&x1<195||y1==270&&x1>225&&x1<315||y1==270&&x1>345||y1==330&&x1>75&&x1<225||y1==330&&x1>315&&x1<465||y1==390&&x1==90||y1==390&&x1==120||y1==390&&x1>165&&x1<225||y1==390&&x1>315&&x1<375||y1==390&&x1>405&&x1<465)continue;
                      circle(x1,y1,13);y1=y1-30;setcolor(YELLOW);sum++;
                      circle(x1,y1,13);
                      setcolor(WHITE);
                      circle(x1,y1,1);}
                      if(c==2)
                      {if(y1>370||y1==60&&x1>75&&x1<140||y1==60&&x1>165&&x1<225||y1==60&&x1>315&&x1<375||y1==60&&x1>405&&x1<465||y1==120&&x1>75&&x1<225||y1==120&&x1>315&&x1<465||y1==180&&x1<195||y1==180&&x1>225&&x1<315||y1==180&&x1>345||y1==270&&x1>75&&x1<225||y1==270&&x1>315&&x1<465||y1==330&&x1==90||y1==330&&x1==120||y1==330&&x1>165&&x1<225||y1==330&&x1>315&&x1<375||y1==330&&x1>405&&x1<465)continue;
                      circle(x1,y1,13);y1=y1+30;setcolor(YELLOW);sum++;
                      circle(x1,y1,13);
                      setcolor(WHITE);
                      circle(x1,y1,1);}
                      if(c==3)
                      {if(x1<90||x1==300&&y1<135||x1==150&&y==90||x1==150&&y1==360||x1==240&&y1==90||x1==240&&y1==150||x1==240&&y1==300||x1==240&&y1==360||x1==210&&y1>195&&y1<255||x1==390&&y1==90||x1==390&&y1==360||x1==480&&y1==90||x1==480&&y1==150||x1==480&&y1==300||x1==480&&y1==360||x1==330&&y1>195&&y1<255)continue;
                      circle(x1,y1,13);x1=x1-30;setcolor(YELLOW);sum++;
                      circle(x1,y1,13);
                      setcolor(WHITE);
                      circle(x1,y1,1);}
                      if(c==4)
                      {if(x1>460||x1==240&&y1<135||x1==150&&y==90||x1==150&&y1==360||x1==60&&y1==90||x1==60&&y1==150||x1==60&&y1==300||x1==60&&y1==360||x1==330&&y1>195&&y1<255||x1==390&&y1==90||x1==390&&y1==360||x1==300&&y1==90||x1==300&&y1==150||x1==300&&y1==300||x1==300&&y1==360||x1==210&&y1>195&&y1<255)continue;
                      circle(x1,y1,13);x1=x1+30;setcolor(YELLOW);sum++;
                      circle(x1,y1,13);
                      setcolor(WHITE);
                      circle(x1,y1,1);}
                      delay(10000000);
                      }
                      if(sum>150)a=283;
                      else
                      a=bioskey(0);
                      if(a==18432) c=1;
                      if(a==20480) c=2;
                      if(a==19200) c=3;
                      if(a==19712) c=4; } return 0; getch( );
                      closegraph( );
                      }


                      IP属地:云南11楼2013-07-10 16:38
                      回复