看啊 一群星星在追老鼠include ltDOSH includeltgraphicsh includeltstdlibh includeltmathh define maxcircle 80 define CR 1 mainunion REGS rint dr=DETECT,mode=0int mx,my,mcint i, color;这是一个界面动画的主题部分,头文件还有一些pi的预处理命令我都省了 希望给你参考一下,C语言的图形动画只能在TC下编写,运行 int a=DETECT,b *切换到图形模式* initgrapha,b,quotdtcquotwhile!kbhit;char *Letter = quotQ W E R T Y U I O P A S D F G H J K L #39 Z X C V B N M , quot *全部按钮* char get textcolor12 gotoxy8 , 2 cprintfquot%squot , Letter gotox;自由落体运动include ltmathh include ltstdioh include ltgraphicsh include ltdosh define pi 36535 double ca3mm1double m1,double m2double ca3fm1double cosine,double sinedouble ca5fm2;但是vc没有,如果想在控制台 下画图,给你一段代码,直接添加你用的api函数就行了 include ltwindowsh include ltstdlibh include ltconioh include ltstdioh include lttcharh extern quotCquot。