The more I try to fix the worse my code gets, Please what am I doing wrong...........
The more I try to fix the worse my code gets, Please what am I doing wrong...........
in void get_centre_point (Point array [ ], int MAX)
the for loop will ALWAYS run once and only once so it really isnt a loop, and the local MAX isn't used
Code:for (index = 0; index < 1; index++)
I don't mean to be rude, but you have a ton of stuff in that code that is pointless, and even more that is erroneous- functions trying to access data from other functions? It would be better just to scrap it and start over, maybe read up on scope and stuff.
You also don't need to include stdlib
Last edited by rmullen3; 03-12-2002 at 04:08 PM.
Well I scraped it and have did another one which actually works, My first coding for strycts, I seem to understand them now after reading a few differnt tuts. I now have a working prog.
Thankyou I would of been there all day trying to work out the prob....