cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Test Animate
Test Animate
Jun 26, 2011 at 5:40pm UTC
reliableboy2
(32)
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();
}
Jun 28, 2011 at 4:03pm UTC
reliableboy2
(32)
plz dont ignore
Jun 28, 2011 at 4:13pm UTC
ultifinitus
(1446)
#1 get rid of turbo-c++
#2 refer to sfml or sdl.
Topic archived. No new replies allowed.