Remember, of course, that in C++ everything is zero-based. So
Value[1][10] is the
second row and the
eleventh column.
A vector, as
Jennifer84 demonstrates, is a superior construct, since you get all the benefits of an array without any of the drawbacks.
[EDIT] Oh yeah, almost forgot to answer your Q. A vector is a "container class" in the STL.
Read what the C++ FAQ has to say about it here.
Last edited by Duoas; Feb 13th, 2008 at 11:38 pm.
Reputation Points: 1140
Solved Threads: 229
Postaholic
Offline 2,039 posts
since Oct 2007