EDIT: esbo, I missed your most recent post (#39) because I was writing this at the time and got held up at work (for almost an hour!). So I didn't consider what that post says in this reply, so...
Type: Posts; User: anduril462
EDIT: esbo, I missed your most recent post (#39) because I was writing this at the time and got held up at work (for almost an hour!). So I didn't consider what that post says in this reply, so...
Then how do you explain your post #14? Nothing constructive there, so why say it? For that matter, posts 11-14 and 16-18 are basically you just thinking "out loud" on the forum, and post #11 is...
Stop hijacking/spamming this thread with one sentence replies. Your code doesn't work, or at least, you introduced a big memory leak by doing so. As I said, the declaration and malloc call were...
@esbo: The declaration of balls is correct. The OP is malloc'ing an array of spheres (not an array of pointers to sphere), so the variable should be declared sphere *balls; as he has it. sphere...
Announcements - C Programming
Check out rule #3, please don't bump your threads in the future, it's not good forum etiquette. Many of us are quite busy with our own jobs, and volunteer our time...