Test Animate

Hi Everyone;
I would like to know how to animate text in C++ [Turbo C++]
Here is the program I so far worked on [also tell me what are the codes used before and after a source code while asking question]

#include<fstream.h>
#include<dos.h>
#include<graphics.h>
clrscr();
int driver,mode;
driver=CGA;
mode=CGA;
initgraph(&driver,&mode,"\\tc\\bgi");
for(int i=0;i<320;i++)
{cleardevice();
i+=2;
setcolor(i%5);
outtextxy(i-210,45,"WELCOME TO");
outtextxy(i-180,80,"CHJ's PROJECT");
delay(50);
}

for(i=0;i<250;i++)
{cleardevice();
i+=2;
setcolor(i%5);
outtextxy(110,45,"WELCOME TO");
outtextxy(140,80,"CHJ' PROJECT");
delay(50);
}
getche();
closegraph();
}

plz dont ignore
#1 get rid of turbo-c++

#2 refer to sfml or sdl.
Topic archived. No new replies allowed.