#include<stdio.h>
#include<stdlib.h>
#include<conio.h>
#include<windows.h>
#include<time.h>
struct node
{
int x,y;
}s[10000];
int len = 0,sok=1,easy=1;
char body[2] = "@",food[2] = "$",space[2] = " ";
char name[100];
void printfXy(short x,short y, char c[100])
{
COORD pos = {
x,y};
HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleCursorPosition(hOut, pos);
printf("%s",c);
}
void mainshow()
{
char words1[20] = "请选择游戏模式:",words2[20] = "1、简单模式",words3[20] = "2、一般模式",
words4[20] = "3、困难模式",words5[30]="请输入模式前对应编号:",words6[20]="贪吃蛇",
tips[30]="游戏即将开始。。请稍后。。",user[20] = "请输入你的名字:";;
printfXy(44,3,words6);
printfXy(40,5,words1);
贪吃蛇--C语言百行代码
最新推荐文章于 2024-08-06 20:47:18 发布