首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > C/C++/VC++ > 贪吃蛇

贪吃蛇

  • 资源大小:1.23 kB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: c++

资 源 简 介

#include #include #include #include #include   class tan { public: tan() { int x,y; int i=0,j=0; foodx=1; foody=1; for(;i<20;i++) { for(j=0;j<20;j++) { a[i][j]=0; } } i=0; j=0; head=new S; last=new S; head->next=last; last->per=head; head->per=NULL; last->next=NULL; for(x=10,y=10;y<14;y++) { addhead(x,y); } for(i=0;i<20;i++) { for(j=0;j<20;j++) { if(i==0||j==0||i==19||j==19) a[i][j]=1; } } } ~tan() { S *p,*q=head; while(p) { p=q->next; delete q; q=p; } } public: typedef struct she

文 件 列 表

贪吃蛇.cpp
VIP VIP
  • IATWAY 16分钟前 成为了本站会员

  • 大智若愚 6小时前 成为了本站会员

  • Mason 8小时前 成为了本站会员

  • 9小时前 成为了本站会员

  • Half_Punch 1天前 成为了本站会员

  • liqing71718 1天前 成为了本站会员

  • 伟国 1天前 成为了本站会员

  • songy 1天前 成为了本站会员

  • 纯色幽默 1天前 成为了本站会员

  • odd? 1天前 成为了本站会员

0.181651s