Help with multi-dimensional arrays
If i have got an array, let's say with two dimensions, something like
Code:
Code:
My question is: is there a better way, so i don't have to give every single value of this dimension? I read about something i could say Code:
|
I cant understand what your asking talk to me on aim
|
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 Code:
Code:
0 1 2 3 4 Code:
I hope i made myself a little bit more clear. Thanks for your support. |
Quote:
Code:
0 1 2 [3]Testarray[3] = {0,0,0}; but Testarray[3] = {0,...}; should work. did u try it? |
Quote:
Defined was Testarray[5][5], so Testarray[3] selects 5 unique values, not just one. My 'problem' is: I wanted to know a smart way to 'nullify' a whole line in a multidimensional array, no matter how big the array might be, ie 32 Lines of 50 values.Testarray[3] = {0,...} works perfectly on single dimensional arrays. |
| All times are GMT -4. The time now is 14:32. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.