#include <stdio.h>
#include <stdlib.h>
#include <Windows.h>
#include <time.h>
#include <conio.h>
#ifndef cplusplus
typedef char bool;
#define up 'w'
#define down 's'
#define left 'a'
#define right 'd'
#define false 0
#define true 1
#endif
void gotoxy(int x,int y)
{
COORD coord;
coord.X=x;
coord.Y=y;
SetConsoleCursorPosition
(GetStdHandle(STD_OUTPUT_HANDLE),coord);
}
#define SNAKESIZE 100
#define MAPWIDTH 78
#define MAPHEIGHT 24
struct
{
int x;
int y;
}food;
struct
{int speed;
int len;
int x[SNA