- 5
- 0
- 约1.1万字
- 约 13页
- 2017-01-07 发布于北京
- 举报
[c语言连连看游戏
#includestdio.h
#includetime.h
#includestdlib.h
#includewindows.h
#includeconio.h
#includestring.h
int b[10][10];
int x,y,x1,y1;static int p=0,r=0;
char cursor[2],tail[2];
void gotoxy(int x, int y) //输出坐标
{
COORD pos;
pos.X = x;
pos.Y = y;
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), pos);
}
void color(int b) //颜色函数
{
HANDLE hConsole = GetStdHandle((STD_OUTPUT_HANDLE)) ;
SetConsoleTextAttribute(hConsole,b) ;
}
void Init() //初始化界面
{
int i,j,a[10];
for(i=0;i9;i++)
{
gotoxy(0,i);
color(11);
for(j=0;j10;j++)
swi
原创力文档

文档评论(0)