1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | #include<stdio.h> #include<time.h> #include<conio.h> #include<stdlib.h> #include<dos.h> #include<graphics.h> void main() { int gd=DETECT,gm; int x=10,y=200,x1=675,y1=380; int stangle=35,endangle=140,radius=90; initgraph(&gd,&gm,"..\\bgi"); while(!kbhit()) { cleardevice(); setbkcolor(BLACK); if(x<640) { x+=5; y+=1; arc(x,y,stangle,endangle+35,radius); arc(x,y-110,190,323,radius+2); circle(x+40,y-60,5); line(x-90,y-90,x-90,y-8); } else { x1-=5; y1-=1; arc(x1,y1,stangle-30,endangle+4,radius); arc(x1,y1-110,217,350,radius+2); circle(x1-40,y1-60,5); line(x1+90,y1-90,x1+90,y1-10); } setcolor(YELLOW); delay(90); } closegraph(); } |
Description :
This is the one stop educational site for all Electronic and Computer students. If you want to learn something new then we are here to help. We work on Microcontroller projects, Basic Electronics, Digital electronics, Computer projects and also in basic c/c++ programs.
#Home #Sitemap #Submit #Terms of Use
Copyright©2011 electrofriends.com All Rights Reserved
Contact:info@electrofriends.com | Powered by Dhyeya
nyc program………..
how to fill the color in fish eyes and how to make the fish eye wink ??? can u help me
gud program