Sorry, don't use AIM or IRC
My question is simple: I want to clear out(reset an entire ROW(?) of an array
Letzs say you have this simple array of 5*5 (as stated above) and filled with some values:
Code:
0 1 2 3 4
0 33 22 54 24 54
1 11 22 52 54 99
2 35 12 45 86 53
3 56 23 21 67 46
4 43 36 44 67 44
Now, if i use something like
Code:
Testarray[3] = {0,0,0,0,0}
on it, i wipe out the entire row. the Result would be like this:
Code:
0 1 2 3 4
0 33 22 54 24 54
1 11 22 52 54 99
2 35 12 45 86 53
3 0 0 0 0 0
4 43 36 44 67 44
My question was simple: Is there a more elegant way to perform the same action? As i have read in the Small/Pawn manual, you can say something like
Code:
Testarray[10] = {0, ...}
to set all 10 cells in Testarray to the value 0. But this didn't work for multidimensional arrays, at last not here - compiler error.
I hope i made myself a little bit more clear.
Thanks for your support.
__________________