26.08.2010, 20:46
I'm wondering how to get the size of some other variable dimension, not first. So for example lets say I do:
that will obviously create me 3 "string" called variables with a size of 128 cells, each. So I want to get the size of the string[0], and it should be 128, but I'm unable to. I'm only able to get the size of the root "string" variable (size = 3). Currently I am doing
but it just won't compile.
Any solutions?
Код:
new string[3][128];
Код:
sizeof(string[0])
Any solutions?