C语言游戏源代码

上传人:夏** 文档编号:547891049 上传时间:2023-04-30 格式:DOC 页数:55 大小:111KB
返回 下载 相关 举报
C语言游戏源代码_第1页
第1页 / 共55页
C语言游戏源代码_第2页
第2页 / 共55页
C语言游戏源代码_第3页
第3页 / 共55页
C语言游戏源代码_第4页
第4页 / 共55页
C语言游戏源代码_第5页
第5页 / 共55页
点击查看更多>>
资源描述

《C语言游戏源代码》由会员分享,可在线阅读,更多相关《C语言游戏源代码(55页珍藏版)》请在金锄头文库上搜索。

1、C语言游戏源代码1、 简朴旳开机密码程序#incdecono.h#inle sti.h#inlde stio.hvoidor()wio(2,1,68,10);extackround(1);extcolor(132);csc();cprinf(file osyse erro! youcat eter h system!!);whe(1); /*若有错误不能通过程序*/vidoo()FILE *fauto,*ak;cha *pasc:winasod.e;/本程序旳位置*/chr a25,;caraaute.bat,*bnme=hecfac; /bname是txca旳备份*eisk(2); /*cu

2、rrny dis c:*/chir(); /scurently dieory /futo=oen(au,r+); (fut=NULL)fu=on(a,w+);if(fat=ULL) ro();rad(,23,aut); /*读取aoexec.a前2各字符*a0;if (srcm(a,ss)=0)/若读取旳和pas指针同样就关闭文献,否则就添加*/fclo(futo);sebkfopen(b,w);f (fbak=NUL)rror();write(ass,3,1,fbak);fpt(,fbak);rwin(auto);wile(!feof(at))ch=fet(fat);t(ch,ba);rwn

3、d(fu);rewd(fk);hle(!fef(fbk))ch=fget(fbk);fputc(ch,auo);fcloe(at);fcloe(fbk);emoe(bnam); *el namefile/void pass()ar passwod888;r inp0;ntn;whle()window(,,80,25);tetbacgroun(0);textolo(15);rscr();n;idow(0,12,0,12);tebckgou(1);ttcor(1);clscr();cint(passwod:);hil(1)inu=geth();if (n8)ptcha(7);brak; /*若字符

4、多于58个字符就结束本次输入/f (iutn=13)rak;f(ut=32&nn0)cpnt(b b);input;n-;int=;f(trmp(psword,input)=0)brak;lseptr(7);wndow(30,0,1);teackgod(15);etor(132);clrcr();cprit(soderro!);th();in()lok();pss();2、 彩色贪吃蛇clde phic.#incle stdb.heine N0define 0x48dfinedon 0x00efi lef0x4b00#efine riht 0x4d0defe ec001b#ei Y 01579

5、defnen 0x1intgamspe;/*游戏速度 */int ,key, clor;it scr = ; / 游戏分数*char48H=00,00,00, , x0, 0x00, x00,0x0,0x0, x00, 00, x00, 0x, 0x0, 000, x0,x00, 000,0, 0x0, 000, 0x00, 0x0, 0, 0x00,x0,0x00,0x00, 0x0, 000, 0x00, x00,004,0x00,x18, 0x,0x, x00, 0xE,0x00, 0x1C,00, 0,0x0,0x1C, 0x0, 0x1C, x00,0x00, 0x0, 2, 0x0

6、, 03,00,0x0,0,4, 0x00, x78, 0x0, x0, x01,00,0x4,00, x00,x,03, x8, xC,0xE0, x0,0x00, x07, 0x80, 08, 0xC0, 0x00,0x00, 00,11, 0x81, 0xC0,0x0, 0x00,x8,0x1, x01, 080, 0x00,0x00, 000, 3, 003, 0x0,0x0, 00, 0x,0x, 0x00, x0,0x0,0x, 0xE,x04,0x0,0x0F,0x00,000,01C, 0x1F, 0x0, 01E,00, 0x0,00, 0x3,0x80, 03C,0x0,0

7、x0, 0x00, FF, 0x80, 0x38,x00, 000, 0x03, xFF, x0, x78, 0x00, 0x00, 0x, xF8, 0x,0xF0, 000, x0,07F,xF0, 0,0x0,0x0, x,xFF, xF, 00, 0x80,0x, x03, 00,xF,0x01, 0x,x8, 0x0, 001,0xFF, 000, x3, 0x0, 0x00,0x0,x,0x00,0x07, x, 0x0, 0x02, x1, x0, 0x07, 0x00, 00, 000,0x10, 0x00,x7, x00, 0x0, 000, 0x1, 0, 00, 0x00

8、, 0x00, 0x08, 10,000,0x1,x0, x00, , x10,0x00,0x,0x0, 0x00, 0x70, x0, 000,x30, x0,00,0x0, 00,00, x7, 00, x0, 0x80,0x10,0x00,0, 0x0, 000, 0,x30,0x00,0, 0x0, 000, x0, 0xF0, 0x01, 0xC,0x00,0x00, 0x0, 0x70, x03, 0xC, 0x0, 000, 0x0, 00,007, 0x80, 0x00, 0x, 0x0, x0, x0,000, 0x0,0x, 0x00,00, 0x1E, 0x0, 0x0,

9、00, 000,0x0, 0x3C, 0x00, x00, 0x0, x00,00, 70, 0x0, 0, 0,0x0,01,00, x0, x0, x,x, 0x0,x00, x,000, 0x0,0x00, x00, 000, 00,0x00, 0x0,0x00, 00, 0x0, 0x00, 000,;casheH =0x0, 0x,0x00, 0x00, x0,x0, 0x00, x00,0x, x0, x00, x00, 0x0, 00, 0x00, 00,0x, 00, 00, 0x, 000, x00, x0, 0x0, x0, 0x00, x0,0x0, x0, 0x0,x0

10、0,00, 0x0,00,0x00,0x0, x00,x0, 0x0, 000, 0x0, x00, 000, 0x0, 0xC, x00, 00, x0, 000,00, x0, x, 0x00,00, x00, 0x00,00,0, 00, 0,0, 00,0x7, 0x0, 0, x00,002, x0, 003, 0x00,0x00,0x00, 0x2,0x0, 00, x00,0x0, 0,0,x0, 0x0,xF8, 00, x0, 0x2, 0, 0, 0x8,0x00, 0,002,x, 018, 0x03, x0,0x00, x02, 0x00, x0,0x07, 08,x00, x3, 0xF,0x00, 0x7, 0x8, 0x00, 0x0F, 0xF, 0x00,0x0, 00, 0x00, 0x7,3F,0x0, 0x00, x00, 0x1, xFE, x1, 0x8, 0x0, 000,01, 0E2, 0x9,8C,0x0, , x, 0xC2, 00, 08, x00, 0x00, x00,0C2, 60,x08, 0x, 0x0, 00, 0xC,0xE0, x08,x6, 0x0, 0x00, 0xF,0E0, x01,0xE, 00, 000,0x3F, 0x80, 0x1F, E0, x00, x0, 0E,

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

当前位置:首页 > 办公文档 > 活动策划

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号