收藏 分享(赏)

拼图游戏C语言代码.doc

上传人:j35w19 文档编号:6319068 上传时间:2019-04-07 格式:DOC 页数:3 大小:19KB
下载 相关 举报
拼图游戏C语言代码.doc_第1页
第1页 / 共3页
拼图游戏C语言代码.doc_第2页
第2页 / 共3页
拼图游戏C语言代码.doc_第3页
第3页 / 共3页
亲,该文档总共3页,全部预览完了,如果喜欢就下载吧!
资源描述

#include#include#include#include#includeint s2020,map2020;void input(int n)srand(time(0);int i,j,k,a,b,t;for (i=1;i0;i-)for (j=n;j0;j-)a=rand()%i+1;b=rand()%j+1;t=sab;sab=sij;sij=t;int ins(int n)int i,j;for(i=1;i1) sxy=sx-1y;x-;key=0;else t-;break;case d:case 77:case D:if(y1) sxy=sxy-1;y-;key=0;else t-;break;case :system(“cls“); goto begin;default :key=1;t-;break;sxy=0;output(k);if(key) printf(“输入有误n“);if(ins(k)printf(“*G O O D !*n 共用%d 步nn 按任意键继续.nn“,t-1);if(char)getch()0) getch();system(“cls“);break;else printf(“ 已用 %d 步n“,t+);else system(“cls“); printf(“输入有误请重新输入n“);goto begin;return 0;

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 生活休闲 > 游戏攻略

本站链接:文库   一言   我酷   合作


客服QQ:2549714901微博号:道客多多官方知乎号:道客多多

经营许可证编号: 粤ICP备2021046453号世界地图

道客多多©版权所有2020-2025营业执照举报