为什么graphics.h找不到?
我的源代码:#include "graphics.h"
#include "stdio.h"
main(){
struct move_point{
int x,y;
int xv,yv;
}man;
int i;
man.x=0,man.y=0,man.xv=1,man.yv=1;
for(i=1;i<=10000;i++){
man.x+=man.xv;
man.y+=man.yv;
gotoxy(man.x,man.y);
printf("%c",2);
}
}
编译:
root@linkstack-desktop:~/pgm# gcc -o smile smile.c
提示:
smile.c:1:22: error: graphics.h: No such file or directory
我用的是Ubuntu linux下自带的gcc编译器,我改怎么办?