#include<dos.h>
#include<iostream.h>
#include<conio.h>
#include<graphics.h>
class doll
{
public:
void dolldraw(int x)
{
int y=100;
circle(x,y+10,10);
line(x,y+20,x,y+100);
line(x,y+40,x-20,y+70);
line(x,y+40,x+20,y+70);
line(x,y+100,x-20,y+120);
line(x,y+100,x+20,y+120);
}
void dollmoll(int x)
{
int y=100;
circle(x,y+10,10);
line(x,y+20,x,y+100);
line(x,y+50,x-20,y+30);
line(x,y+50,x+20,y+30);
line(x,y+100,x-20,y+90);
line(x,y+100,x+20,y+90);
}
};
void main()
{
doll a,b,c,d,e;
int h,i,j,k;
int gd=DETECT,gm;
initgraph(&gd,&gm,"C:\\TC\\BGI");
int w=50;
while(!kbhit())
{
a.dolldraw(w);
h=w+45;
b.dolldraw(h);
j=h+45;
c.dolldraw(j);
i=j+45;
d.dolldraw(i);
k=i+45;
e.dolldraw(k);
delay(500);
cleardevice();
w=150;
a.dollmoll(w);
b.dollmoll(h);
c.dollmoll(i);
d.dollmoll(j);
e.dollmoll(k);
delay(500);
cleardevice();
}
getch();
closegraph();
}
#include<iostream.h>
#include<conio.h>
#include<graphics.h>
class doll
{
public:
void dolldraw(int x)
{
int y=100;
circle(x,y+10,10);
line(x,y+20,x,y+100);
line(x,y+40,x-20,y+70);
line(x,y+40,x+20,y+70);
line(x,y+100,x-20,y+120);
line(x,y+100,x+20,y+120);
}
void dollmoll(int x)
{
int y=100;
circle(x,y+10,10);
line(x,y+20,x,y+100);
line(x,y+50,x-20,y+30);
line(x,y+50,x+20,y+30);
line(x,y+100,x-20,y+90);
line(x,y+100,x+20,y+90);
}
};
void main()
{
doll a,b,c,d,e;
int h,i,j,k;
int gd=DETECT,gm;
initgraph(&gd,&gm,"C:\\TC\\BGI");
int w=50;
while(!kbhit())
{
a.dolldraw(w);
h=w+45;
b.dolldraw(h);
j=h+45;
c.dolldraw(j);
i=j+45;
d.dolldraw(i);
k=i+45;
e.dolldraw(k);
delay(500);
cleardevice();
w=150;
a.dollmoll(w);
b.dollmoll(h);
c.dollmoll(i);
d.dollmoll(j);
e.dollmoll(k);
delay(500);
cleardevice();
}
getch();
closegraph();
}
Moana Dolls
ReplyDeleteMoana Toys .com is your one stop look for all data in regards to the hit motion picture Moana, and connections to various stock and items identified with the film.
Cheapest Smart TV
ReplyDeleteKeen TV's are turning out to be increasingly basic in the market today yet what amount do you truly think about them… A Smart TV is basically a TV box that is worked to be associated with the web and is a PC essentially concentrated for excitement purposes. They arrive in a scope of sizes ranging&hellip
This program compile fully no error but it doesn't give any output
ReplyDeleteWhy?
Change the directory in the initgraph function to "C:\\TURBOC3\\BGI" or appropriate directory as per your installation.
DeleteThis comment has been removed by the author.
ReplyDeleteExcellent work.Thanks a lot.❤️⚡👍
ReplyDeleteCan I get the out put for this
ReplyDeleteWorked .....
ReplyDeleteCan any one explain the code??
ReplyDeleteClose group should have a prototype, error
ReplyDeleteit doesnt run! why is that, it says it doesnt open iostream.h, why
ReplyDeleteVoid dollmoll
ReplyDeleteCircle (x,y+10,10);
Undefined symbol , x, error