I think you need to go back to your C++ reference guides and learn the difference between simple types and classes/structs. The arrays you have defined are simple types and do not have member functions in the way that classes or structs have. The only way to get the length of a simple type array is to use the
sizeof
operator, but this is resolved at compile time so will probably not suit your purpose. You probably need to use one of the STL
classes[
^] that handle collections, probably
list
or
vector
. You should also read up on the syntax of
Templates[
^], as your specification is incorrect.
[edit]I should also mention
_countof()
(defined in
stdlib.h) which gives the number of elements rather than the total size. Also
ARRAYSIZE
(defined in
WinNT.h).[/edit]