#include<graphics.h>
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
main()
{int gd=DETECT,gm;
int i=0;
char a[6],k[2]="",*t[5];
initgraph(&gd,&gm,"");
printf("Input 5 letters:");
fflush(stdin);
for(i=0;i<5;i++)
{a[i]=getchar();
putchar(a[i]);
}
for(i=0;i<5;i++)
{*t[i]=k[0];*t[i]=a[i];}
i=-40;
while(i<48)
{cleardevice();
outtextxy(2,(i+32)*10,t[0]);
outtextxy(2,(i+24)*10,t[1]);
outtextxy(2,(i+16)*10,t[2]);
outtextxy(2,(i+8)*10, t[3]);
outtextxy(2, i*10,
t[4]);
delay(20000);
i++;}
getch();
closegraph();}
调试一下行不行……
[此贴子已经被作者于2005-6-18 20:09:13编辑过]