First let me explain the situation then I'll ask my question...
I have a bitmap image that contains a several squares in it.. I have a
program that alows the user to move around the pointer with the mouse and
click the mouse buttons (theres more to it than that but that's all i need
to explain)..
So I want to know when the user is clicking in one of the squares... I know
all the coding techiniques to check the mouse and etc..
Q: What I want to know is what is everyones opinions to the best structure
of the list of squares...
for instance... square 1: top left: 1,1; bottom right: 5,9 etc...
So I would want to store the 1,1 and the 5,9
I'm not sure of all of my options for this... Should I store them in a
list?? in a binary tree?? or just some sort of sequential table?? (I'm a
mainframe cobol programmer by profession and it sometimes gets
in my way when I try to think in C)