C programming: Trying to have an "atom" bounce off of a jar. Please help!

C programming: Trying to have an "atom" bounce off of a jar. Please help!

This is a discussion on C programming: Trying to have an "atom" bounce off of a jar. Please help! within the C Programming forums, part of the General Programming Boards category; <script src="http://pastebin.com/embed_js.php?i=wN0E3tjz"></script>
Code:
Code:
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> int main ( ) { typedef struct { double x ...

I really appreciate the help since I am in a beginning programming class. I have NEVER coded. I'm sorry if the problems are super obvious and my code is messy, but I would love if you could make my code work for C programming. I'm using the compiler bloodshed. I'm trying to make the 'atom' bounce off the 'jar's' walls in this code. Thank you!!