Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  55
Language: C/C++
Code:
#include<iostream.h>
#include<conio.h>
#include<dos.h>
#include<graphics.h>

void main()
{
int d=0,m;
initgraph(&d,&m,"..//bgi");

for(int x=0;x<650;x++)
{
cleardevice();

line(10,401,630,401);
circle(40+x,370,30);
circle(150+x,370,30);

line(40+x,370,100+x,370);
line(40+x,370,60+x,340);
line(100+x,370,120+x,340);
line(120+x,340,60+x,340);
line(60+x,340,60+x,335);
line(55+x,335,65+x,335);
line(150+x,370,100+x,320);
line(100+x,320,90+x,320);

delay(10);
}

getch();
}
          
Comments: