12-1.c
来自「水电出版社的《C语言程序设计实训》源代码」· C语言 代码 · 共 37 行
C
37 行
/*12-1.c*/
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
#include<dos.h>
#include<graphics.h>
#define OK 0
#define ERROR 0
#define TRUE 1
#define FALSE 0
#define OVERFLOW 1
typedef struct{
int x;
int y;
}postype;
typedef struct{
int ord;
postype seat;
int di;
}selemtype;
typedef struct{
int td;
int foot;
int mark;
}mazetype;
mazetype maze[20][20]={{{-1},{1},{-1},{-1},{-1},{-1},{-1},{-1},{-1},{-1}},
{{-1},{1},{1},{-1},{1},{1},{1},{-1},{1},{-1}},
{{-1},{1},{1},{-1},{1},{1},{1},{-1},{1},{-1}},
{{-1},{1},{1},{1},{1},{-1},{-1},{1},{1},{-1}},
{{-1},{1},{-1},{-1},{-1},{1},{1},{1},{1},{-1}},
{{-1},{1},{1},{1},{-1},{1},{1},{1},{1},{-1}},
{{-1},{1},{-1},{1},{1},{1},{-1},{1},{1},{-1}},
{{-1},{1},{-1},{-1},{-1},{1},{-1},{-1},{1},{-1}},
{{-1},{-1},{1},{1},{1},{1},{1},{1},{1},{1}},
{{-1},{-1},{-1},{-1},{-1},{-1},{-1},{-1},{-1},{-1}}};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?