answersLogoWhite

0


Best Answer

: #include<graphics.h> #include<stdio.h> #include<conio.h> #include<alloc.h> #include<math.h>

#include<dos.h> const pi=3.14; void main() {int gd=DETECT, gm,i,x,y; int size; void *buf; initgraph(&gd,&gm,"c:\\tc\\bgi"); ellipse(240,210,0,160,90,45); ellipse(240,190,180,360,90,45);

circle(170,195,3); ellipse(100,230,10,400,100,80); ellipse(232,207,0,365,100,150); arc(265,170,0,160,15); arc(225,233,180,350,20); arc(265,233,180,380,10); size=imagesize(150,150,350,350); buf=(char *)malloc(size); getimage(150,150,350,350,buf);

for(i=0;i<=360;i+=2) {delay(10); cleardevice(); x=150*cos(i*pi/180); y=150*sin(i*pi/180);

putimage(200+x,100+y,buf,0); } getch(); restorecrtmode();}

User Avatar

Wiki User

11y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

xdfgd

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Design a fish and give movement with suitable animation function in C programming?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the suitable age to start learning programming?

The suitable age to start learning programming is twelve years.


How do you choose a suitable programming language?

spain


How do you do C programming on your Windows?

C programming can be started on Windows by using a suitable IDE (these include compilers) such as Dev-C++


What programming language can be used for water billing system?

Any programming language can be used. Some are more suitable than others.


What careers are suitable for those who are good at math but not programming?

A mathematician or simply an accountant


What are careers suitable if you are good at math but bad at programming and science?

job training


The general process of designing a suitable computer program to solve a gvien problem is known?

programming


Is the function for employing suitable person for the enterprise?

Staffing


What is the function of employing suitable person for the enterprise?

Staffing


Is Python used for computer programming or software programming?

Computer programming is the process of making software. The expression software programming isn't much used, but would mean exactly the same.Python is a general purpose interpreted programming language. It is not suitable for highly optimised code, or for operating system programming, but a good choice for many other situations.


Is it possible to reprogram a laser mouse to scan retinas?

No, the hardware in a mouse is not suitable, no matter how good you are at programming.


Why do you die the way you die in Runescape its weird?

Because runescape has to suitable for younger children, so there can be no vivid or detailed death animation