| ^~~~~~~~~~~~
compilation terminated.
#include “graphics.h”
#include
int main(){
int width=600, height=600;
int x=width/2,y=height/2,r=50;
char c;
initgraph(width,height);
while(1){
if(kbhit()){
c=getch();
//TODO: 根据要求实现
//如果输入的是 w,则小球上移
//如果输入的是 s,则小球下移
//如果输入的是 a,则小球左移
//如果输入的是 d,则小球右移
}
cleardevice();
solidcircle(x,y,r);
Sleep(10);
}
}
这个头文件要装easyx库才有的啊。