From 591d9fb3bbf3a74fd616eb85b6119a06930daa91 Mon Sep 17 00:00:00 2001 From: AceTeemo <609544959@qq.com> Date: Wed, 9 Jan 2019 20:03:46 +0800 Subject: [PATCH] maze --- v6.c => 迷宫.c | 50 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) rename v6.c => 迷宫.c (83%) diff --git a/v6.c b/迷宫.c similarity index 83% rename from v6.c rename to 迷宫.c index 897c205..71044d6 100644 --- a/v6.c +++ b/迷宫.c @@ -263,3 +263,53 @@ void chu() map[i][j]=2; make(i,j); } +//µÃµ½·½Î»ÇÒ¿ÉÅжÏÊÇ·ñÓÐÓÐЧÁÚ¾Ó(¿ÉÍÚ¾òµÄ) +char des(int x1,int y1) +{ + char a[5]; + int k=0; + if(x1>1&&map[x1-2][y1]==1) a[k++]='w'; + if(x11&&map[x1][y1-2]==1) a[k++]='a'; + if(y1