HEllo!!
Bouncing ball simulation is really interesting in C++. It uses the header file <graphics.h> for drawing the ball, and here we also use http://stephaniefulke.blogspot.com /2013/05/using-delay-function-in-c.html">the delay function for displaying the ball in different places.
The header files used : < graphics.h> , <stdio.h>, <conio.h> , <iostream.h>, <dos.h>, <stdlib.h>
the source code is not that hard to understand if you know how to use graphics in C++.
Otherwise it's a little complicated, again 'copy-paste'.
here is the source code:
That's it, there is nothing you can do in this simulator, other than watching it bounce.
Thank you
cheers !!
keep coding..
Bouncing ball simulation is really interesting in C++. It uses the header file <graphics.h> for drawing the ball, and here we also use http://stephaniefulke.blogspot.com /2013/05/using-delay-function-in-c.html">the delay function for displaying the ball in different places.
The header files used : < graphics.h> , <stdio.h>, <conio.h> , <iostream.h>, <dos.h>, <stdlib.h>
the source code is not that hard to understand if you know how to use graphics in C++.
Otherwise it's a little complicated, again 'copy-paste'.
here is the source code:
That's it, there is nothing you can do in this simulator, other than watching it bounce.
Thank you
cheers !!
keep coding..
0 komentar:
Posting Komentar