代码是这样的
#include
#include
#include
#include "move.h"
int main()
{ char m[20] [20]={"######",
"#O # ",
"# ## #",
"# # #",
"## #",
"######"};
int i,x,y,p,q;
char ch;
x=1,y=1,p=1,q=5;
for(i=0;i<6;i++)
puts (m[i]);
while(x!=p || y!=q)
{
ch=getch();
move(m,ch,x,&y);
system("cls");
for(i=0;i<6;i++)
puts(m[i]);
}
printf("Congratulations on winning the maze !");
return 0;
}
没有报错,就是无法运行
求大佬解答,谢谢
本人新手,希望可以详细点谢谢
鬼才知道“#include "move.h"”是什么玩意。还详细点,你提问都不详细,回答能详细个毛。
问题不够详细呢,最好能把 无法运行 的截图发上来。没有报错说明编译是没问题的