hi, i need help on to stored x and y coordinate in two dimensional array
i receive input from listbox or textbox and stored in array,
the data will be 40 points
really need help on it
thanks
How can i stored x and y coordinate in two dimensional array in c#
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Jean PaulRank #32 · 38.5K reputationPosted Nov 9, 2010, 1:58 AM EST
1) You can use an array like you mentioned:
int[,] array = new int[40,2];
array[0, 0]=100; //x
array[0, 1] = 200; //y
or
2) Use the Point struct and List for storing
IList
list.Add(new System.Drawing.Point(100, 200));