I have a way to ::iterate the dimensions for a vector as in the first code.
Now I am using a List as in the second code and looking for
how this list will iterate in the same way as for the vector but have problem to find examples of this.
I have begun some code for the list but something might be missing.
(std::vector)
Code:
typedef std::vector<string> One;
typedef std::vector<One> Two;
typedef std::vector<Two> Three;
Three Listing;
for (Three::iterator a = Listing.begin(); a != Listing.end(); ++a)
{
for (Two::iterator b = a->begin(); b != a->end(); ++b)
{
for (One::iterator c = b->begin(); c != b->end(); ++c)
{}}}
(List)
Code:
typedef List<String^> One;
typedef List<One^> Two;
typedef List<Two^> Three;
Three Listing;
for(int a = 0; a < Three().Count + 1; ++a)
{
for(int b = 0; b < Two().Count + 1; ++b)
{
for(int c = 0; c < One().Count + 1; ++c)
{}}}