"); //-->
代码
#include <graphics.h> #include<dos.h> #define PI 3.1415926 int main() { int i,t,x=300,y=50; int gdriver, gmode; gdriver = DETECT; initgraph(&gdriver, &gmode, "c://tc"); cleardevice(); setbkcolor(9); setcolor(4); printf("Input delay time(1-10)"); scanf("%d",&t); for(i=1;i<=10;i++) { x=x-15; y=y+15; settextstyle(1,0,i); cleardevice(); outtextxy(x,y,"Hello!"); delay(100+t); } getch(); closegraph(); return 0; }
运行
*博客内容为网友个人发布,仅代表博主个人观点,如有侵权请联系工作人员删除。