c语言图像问题
大家看下这些数字是什么意思 顺便有资料的给些资料 c初学还有谁有张翔的c函数大全pdf 大大们给传下 小弟不胜感激
#include<bios.h>
#define UP 0x4800
#define DOWN 0x5000
#define LEFT 0x4b00
#define RIGHT 0x4d00
#define ESC 0x11b
void main()
{int key,x,y,a,b;
int i;
clrscr();
for(i=20;i<=60;i++)
{gotoxy(i,4);
printf("%c",219);
gotoxy(i,21);
printf("%c",219);
}
for(i=4;i<=21;i++)
{gotoxy(19,i);
printf("%c",219);
gotoxy(61,i);
printf("%c",219);
gotoxy(18,i);
printf("%c",219);
gotoxy(62,i);
printf("%c",219);
}
gotoxy(40,10);
x=40;
y=10;
printf("\1");
gotoxy(x,y);
for(;;)
{ a=x;
b=y;
key=bioskey(0);
switch(key)
{
case UP:
{
y--;
if(y==4)
{
y++;
b++;
}
gotoxy(x,y);
}break;
case DOWN:
{
y++;
if(y==21)
{
y--;
b--;
}
gotoxy(x,y);
}break;
case LEFT:
{ x--;
if(x==19)
{
x++;
a++;
}
gotoxy(x,y);
}break;
case RIGHT:
{
x++;
if(x==61)
{
x--;
a--;
}
gotoxy(x,y);
}break;
case ESC:
exit(0);
default: continue;
}
printf("\1");
gotoxy(a,b);
printf(" ");
gotoxy(x,y);
}