首页 c语言飞机大战源代码

c语言飞机大战源代码

举报
开通vip

c语言飞机大战源代码#include #include #include #include #define N 35 void print(int [][N]);//输出 void movebul(int [][N]);//子弹移动 void movepla(int [][N]);//敌机移动 void setting();//设置 void menu();//菜单 int scr[22][N]={0},pl=9,width=24,speed=3,density=30,score=0,death=0;//界面,位...

c语言飞机大战源代码
#include #include #include #include #define N 35 void print(int [][N]);//输出 void movebul(int [][N]);//子弹移动 void movepla(int [][N]);//敌机移动 void setting();//设置 void menu();//菜单 int scr[22][N]={0},pl=9,width=24,speed=3,density=30,score=0,death=0;//界面,位置,宽度,速度,密度,分数,死亡 main() { menu(); int i=0,j=0,c; scr[21][pl]=1; scr[0][5]=3; while(1) //控制阶段(开始) {if(kbhit())switch(getch()) {case 'a': case 'A': if(pl>0) scr[21][pl]=0,scr[21][--pl]=1;break; case 'd': case 'D': if(pl=0;i--) for (j=0;j
本文档为【c语言飞机大战源代码】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑, 图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
该文档来自用户分享,如有侵权行为请发邮件ishare@vip.sina.com联系网站客服,我们会及时删除。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。
本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。
网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
下载需要: 免费 已有0 人下载
最新资料
资料动态
专题动态
is_005190
暂无简介~
格式:doc
大小:17KB
软件:Word
页数:6
分类:互联网
上传时间:2019-04-15
浏览量:261