[C] 纯文本查看 复制代码 int a=0; char t='A'; |
[backcolor=rgb(244, 244, 244) !important]/*ant.c*/ [backcolor=rgb(244, 244, 244) !important]#define SPACE 0x20 /*按键定义*/ #define ESC 0x1b [backcolor=rgb(244, 244, 244) !important]#define ANT_CHAR_EMPTY '+' #define ANT_CHAR_FOOD 153 /*携带食物的蚂蚁*/ [backcolor=rgb(244, 244, 244) !important]#define HOME_CHAR 'H' #define FOOD_CHAR 'F' [backcolor=rgb(244, 244, 244) !important]#define FOOD_CHAR2 'f' #define FOOD_HOME_COLOR 12 /*红色*/ |