#include<iostream.h>
#include<graphics.h>
#include<conio.h>
#include<dos.h>
void main()
{
char a[20],b[20],c[20];
clrscr();
int gd=DETECT,gm,i,j,k;
initgraph(&gd,&gm,"c:\\turboc++\\disk\\turboc3\\bgi");
setbkcolor(11);
cout<<"\n\t\tDropping Word by word";
cout<<"\n\t\t*********************\n";
cout<<"\n\tEnter the any three words \n";
cout<<"\tWord 1=";
cin>>a;
cout<<"\tWord 2=";
cin>>b;
cout<<"\tWord 3=";
cin>>c;
for(i=0;i<400;i++)
{
cleardevice();
outtextxy(50,i,a);
outtextxy(200,10,b);
outtextxy(400,10,c);
delay(10);
}
for(j=0;j<400;j++)
{
cleardevice();
outtextxy(50,i,a);
outtextxy(200,j,b);
outtextxy(400,10,c);
delay(10);
}
for(k=0;k<400;k++)
{
cleardevice();
outtextxy(50,i,a);
outtextxy(200,j,b);
outtextxy(400,k,c);
delay(10);
}
getch();
}
#include<graphics.h>
#include<conio.h>
#include<dos.h>
void main()
{
char a[20],b[20],c[20];
clrscr();
int gd=DETECT,gm,i,j,k;
initgraph(&gd,&gm,"c:\\turboc++\\disk\\turboc3\\bgi");
setbkcolor(11);
cout<<"\n\t\tDropping Word by word";
cout<<"\n\t\t*********************\n";
cout<<"\n\tEnter the any three words \n";
cout<<"\tWord 1=";
cin>>a;
cout<<"\tWord 2=";
cin>>b;
cout<<"\tWord 3=";
cin>>c;
for(i=0;i<400;i++)
{
cleardevice();
outtextxy(50,i,a);
outtextxy(200,10,b);
outtextxy(400,10,c);
delay(10);
}
for(j=0;j<400;j++)
{
cleardevice();
outtextxy(50,i,a);
outtextxy(200,j,b);
outtextxy(400,10,c);
delay(10);
}
for(k=0;k<400;k++)
{
cleardevice();
outtextxy(50,i,a);
outtextxy(200,j,b);
outtextxy(400,k,c);
delay(10);
}
getch();
}
No comments:
Post a Comment
Thank you for using this blog.