Size of a dimension
#1

I'm wondering how to get the size of some other variable dimension, not first. So for example lets say I do:
Код:
new string[3][128];
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
Код:
sizeof(string[0])
but it just won't compile.

Any solutions?
Reply


Messages In This Thread
Size of a dimension - by Luka P. - 26.08.2010, 20:46
Re: Size of a dimension - by Toni - 26.08.2010, 20:49
Re: Size of a dimension - by Luka P. - 26.08.2010, 22:49
Re: Size of a dimension - by Luka P. - 05.09.2010, 00:51
Re: Size of a dimension - by DiddyBop - 05.09.2010, 00:53

Forum Jump:


Users browsing this thread: 4 Guest(s)