2022年C语言基础代码 .pdf

上传人:C****o 文档编号:39678415 上传时间:2022-09-07 格式:PDF 页数:9 大小:59.86KB
返回 下载 相关 举报
2022年C语言基础代码 .pdf_第1页
第1页 / 共9页
2022年C语言基础代码 .pdf_第2页
第2页 / 共9页
点击查看更多>>
资源描述

《2022年C语言基础代码 .pdf》由会员分享,可在线阅读,更多相关《2022年C语言基础代码 .pdf(9页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。

1、C 语言基础代码.txt有谁会对着自己的裤裆傻笑。不敢跟他说话却一遍一遍打开他的资料又关上。用了心旳感情,真旳能让人懂得很多事。如果有一天,我的签名不再频繁更新,那便证明我过的很好。#includestdio.h#includebios.h#include conio.h#include dos.h#include#include#define LEFT 75 /*左方向键的宏定义 */#define RIGHT 77 /*右方向键的宏定义 */#define UPPER 72 /*上方向键的宏定义 */#define DOWN 80 /*下方向键的宏定义 */#define ESC 27 /

2、*ESC键的宏定义 */void putchxy(int y,int x,char ch,char fc,char bc);int djs()int i,x=0,y=0;printf(ntttJu Li Tui Chu Shi Jian:);/*游戏结束的倒记时6 秒钟*/for(i=6;i=0;i-)sleep(1);printf(%db,i);if(i=0)exit();/*结束时间*/*void show()textcolor(GREEN);printf(nnnnnnntt );cprintf(*);printf(ntt );/*游戏开始界面以及判断是否进入游戏*/cprintf(*Hu

3、an Ying Play Mi Gong!*);printf(ntt );cprintf(*Maker:Lihong *);printf(ntt );cprintf(*);printf(ntt );cprintf(Are You Ready );printf(nntt );cprintf(y/n );名师资料总结-精品资料欢迎下载-名师精心整理-第 1 页,共 9 页 -void gameover()printf(nnnnnnn);printf(tt *n);printf(tt *Game Over *n);printf(tt *n);/*游戏结束的界面*/printf(tt *Huan Yi

4、ng Xia Ci Zai Wan*n);printf(tt *n);djs();union keyboard /*定义读取键盘码的共用体类型*/int KeyIn;char KeyBit2;int GetKey()/*定义读取键盘码的函数*/union keyboard unKey1;/*定义读取键盘码的共用体变量*/unKey1.KeyIn=bioskey(0);/*读取按键信息*/return(unKey1.KeyBit0=0?unKey1.KeyBit1:unKey1.KeyBit0);/*返回 ASCII 码或扩 char far*screen=(char far*)0 xb8000

5、000;void putchxy(int y,int x,char ch,char fc,char bc)/*写屏函数,刚学会的*/screen(x*160)+(y1)+0=ch;screen(x*160)+(y1)+1=(bc*16)+fc;void printwall(int x,int y)putchxy(x,y,100,GREEN,GREEN);int Tong()clrscr();printf(nnnnnntttGong Xi Ni Tong Guan!n);printf(nnttt Chong Xin Kai Shi?nntttt y/n?nn);/*游戏通关界面以及判断是否继续*

6、/printf(tttt );if(getchar()=Y|getchar()=y)clrscr();Map1();名师资料总结-精品资料欢迎下载-名师精心整理-第 2 页,共 9 页 -else exit();int Map3()/*第三关的地图*/char Humen=2;int Key,x=22,y=12;int Map2060=/*第一個 高,第二個 寬*/0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,

7、0,0,/*1*/0,1,1,1,1,1,0,1,0,0,1,1,1,0,0,0,1,1,1,0,0,1,0,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,0,1,1,0,0,0,0,0,1,1,1,0,0,1,0,0,1,1,1,1,0,0,/*2*/0,1,0,0,0,1,0,1,0,0,1,0,1,0,0,0,1,0,1,0,1,1,1,0,1,0,0,1,0,1,0,0,1,0,0,1,0,1,0,1,0,1,1,1,1,1,1,0,1,0,0,0,1,1,1,0,0,1,1,0,/*3*/0,1,0,1,0,1,0,1,0,0,1,0,1,0,0,1,1,0,1,1,0

8、,0,0,0,1,1,0,1,0,1,1,1,1,0,0,1,0,1,0,1,0,1,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,0,0,/*4*/0,1,1,1,0,1,0,1,0,0,1,0,1,0,1,1,0,0,0,0,1,1,1,0,1,0,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;j+)if(Mapj=0)printwall(j+9,i+4);if(Mapj=1)printf();if(Mapj=2)printf();if(Mapy-5x-10=2)clrscr();Tong();gotoxy(x,y);printf(%cb,Humen);Key=GetKey();if(Key=LEFT&Mapy-5x-1-10!=0)x-;if(Key=RIGHT&Mapy-5x+1-10!=0)x+;if(

16、Key=UPPER&Mapy-1-5x-10!=0)y-;if(Key=DOWN&Mapy+1-5x-10!=0)y+;if(Key=ESC)clrscr();gameover();break;名师资料总结-精品资料欢迎下载-名师精心整理-第 4 页,共 9 页 -clrscr();getch();int Map2()/*第二关的地图*/char Humen=2;int Key,x=11,y=6;int Map2060=/*第一個 高,第二個 寬*/0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0

17、,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,/*0*/0,1,1,1,1,1,1,0,1,1,1,1,1,0,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0,1,0,1,0,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,0,/*2*/0,0,0,0,0,0,1,0,1,0,0,0,0,0,1,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,1,1,1,1,1,1,1,1,1,0,1,0,0,0,0,0,0,0,0,0,1,0,1,0,/*3

18、*/2,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,0,0,1,0,1,1,1,1,1,1,1,1,1,1,0,1,1,0,1,1,0,1,0,1,0,0,0,1,0,1,1,1,1,1,1,1,1,0,0,1,0,1,0,/*4*/0,0,1,1,1,1,0,0,0,0,0,0,0,1,0,1,0,1,1,1,0,1,0,0,0,1,0,0,0,0,1,0,1,0,1,0,1,0,1,0,1,1,1,0,1,0,0,1,0,0,0,0,0,1,0,0,1,0,1,0,/*5*/0,0,0,0,0,1,1,1,0,1,0,1,1,0,1,1,1,0,1,1,0,1,0,1,

19、1,1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1,0,1,1,0,1,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,1,0,0,0,/*04*/0,1,0,1,1,1,1,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,1,0,1,0,0,1,1,1,0,1,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,0,1,1,1,1,

23、0,/*05*/0,1,0,1,0,1,0,0,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,0,1,1,1,1,0,0,0,0,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,/*06*/0,1,0,1,0,1,1,1,0,0,0,1,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,0,0,0名师资料总结-精品资料欢迎下载-名师精心整理-第 5 页,共 9 页 -,0,0,0,1,1,1,1,1,0,0,0,0,1,1,1,1,1,1,1,0,/*07*/0,1,

24、1,1,0,1,0,1,1,1,1,0,1,1,1,0,0,1,1,1,1,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,1,0,0,0,1,1,1,1,1,1,0,0,0,0,1,0,0,/*08*/0,0,0,0,0,1,0,0,0,0,1,1,1,0,1,1,1,1,0,0,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,0,1,0,0,0,0,0,1,1,1,1,0,0,/*09*/0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,

25、0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0/*20*/;int i,j;while(1)for(i=0;i20;i+)gotoxy(10,5+i);for(j=0;j60;j+)if(Mapj=0)printwall(j+9,i+4);if(Mapj=1)printf();if(Mapj=2)printf();if(Mapy-5x-10=2)clrscr();Map3();exit();gotoxy(x,y);printf(%cb,Humen);Key=GetKey();if(Key=LEFT&Mapy

26、-5x-1-10!=0)x-;if(Key=RIGHT&Mapy-5x+1-10!=0)x+;if(Key=UPPER&Mapy-1-5x-10!=0)y-;if(Key=DOWN&Mapy+1-5x-10!=0)y+;if(Key=ESC)名师资料总结-精品资料欢迎下载-名师精心整理-第 6 页,共 9 页 -clrscr();gameover();break;clrscr();getch();Map1()/*第一关的地图*/char Humen=2;int Key,x=11,y=6;/*x,y为人物移动后坐标*/int Map2060=/*第一個 高,第二個 寬*/*用二维数组定义地图*/

27、0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,/*1*/0,1,1,1,1,1,0,1,1,1,0,0,0,0,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,0,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,0,/*2*/0,1,0,0,0,1,0,1,0,0,1,1,1,1,1,0,1,0,1,0,1,0,1,0,1,

28、0,1,0,1,1,0,0,0,0,0,0,1,0,0,0,1,1,0,1,0,0,1,0,1,0,0,1,0,0,1,1,1,1,0,0,/*3*/0,1,0,1,0,1,0,1,0,0,1,0,0,0,1,0,1,0,1,0,0,1,0,1,0,1,0,1,0,1,1,1,1,1,1,1,1,1,1,0,1,0,1,1,0,1,1,0,1,0,0,1,1,0,1,0,0,1,0,0,/*4*/0,1,1,1,0,1,0,1,1,1,1,0,1,0,1,0,1,0,1,1,0,1,1,1,1,1,1,1,0,0,0,0,0,1,0,0,0,0,1,0,1,0,0,1,0,1,1,0,1,0,

29、0,1,0,0,1,0,1,1,0,0,/*5*/0,0,0,0,0,1,0,0,1,0,1,1,0,1,1,0,1,0,1,0,1,0,1,0,0,0,0,1,1,1,1,1,0,1,0,1,1,0,1,0,1,1,0,1,0,1,1,0,1,0,0,1,0,0,1,0,1,1,1,0,/*6*/0,0,1,1,1,1,0,0,1,0,1,0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/0,1,1,1,1

33、,1,1,1,0,1,0,1,1,0,1,0,1,1,1,1,0,0,0,0,0,1,1,0,1,0,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,0,1,0,0,1,1,0,0,0,1,1,1,1,0,0,/*15*/0,1,1,1,1,1,1,0,0,1,1,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,0,1,0,0,1,0,1,1,0,1,1,0,0,0,1,1,1,0,0,1,0,1,1,1,1,1,0,1,0,0,/*17*/0,1,0,0,0,0,1,0,0,1,1,1,1,0,0,0,0,0,0,0,1,0,0,1,0,1,1,0,1

34、,0,0,1,0,0,1,0,1,0,0,1,1,1,1,0,0,0,0,1,1,1,0,1,0,0,1,0,0,1,1,2,/*18*/0,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,0,1,1,1,1,0,1,0,0,1,1,1,1,0,0,1,1,1,1,1,1,0,0,1,1,1,1,1,1,0,1,1,1,0,0,1,1,1,0,0,0,/*19*/;/*0表示墙 1 表示路 2 表示出口*/int i,j;while(1)/*反复进行求移动的坐标运算*/for(i=0;i20;i+)/*输出新地图*/gotoxy(10,5+i);for(j=0;j60;

35、j+)if(Mapj=0)printwall(j+9,i+4);if(Mapj=1)printf();/*0,1,2分别用#,符号代替*/if(Mapj=2)printf();if(Mapy-5x-10=2)/*如果人的坐标和目标坐标重合就进入下一关*/clrscr();Map2();exit();gotoxy(x,y);textcolor(YELLOW);/*在起始(或移动后)的坐标输出人*/cprintf(%cb,Humen);/*人物用*号表示,并且光标退一格*/Key=GetKey();/*按读取的按键信息改变坐标如果改变的坐标和0 重合则不改变*/if(Key=LEFT&Mapy-5

36、x-1-10!=0)x-;if(Key=RIGHT&Mapy-5x+1-10!=0)x+;if(Key=UPPER&Mapy-1-5x-10!=0)y-;名师资料总结-精品资料欢迎下载-名师精心整理-第 8 页,共 9 页 -if(Key=DOWN&Mapy+1-5x-10!=0)y+;/*判断按 ESC键句输出结束界面并退出游戏*/if(Key=ESC)clrscr();gameover();break;clrscr();getch();main()show();/*调用游戏开始界面*/printf(bbbbbbbbbbbb);if(getchar()=y)/*进行判断是否进入游戏*/clrscr();/*如果选 y 则进入游戏反之结束游戏退出*/Map1();else exit();名师资料总结-精品资料欢迎下载-名师精心整理-第 9 页,共 9 页 -

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 教育专区 > 高考资料

本站为文档C TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知淘文阁网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

工信部备案号:黑ICP备15003705号© 2020-2023 www.taowenge.com 淘文阁