Maki Jav wrote:Hope I am clear in my question...
Maki Jav wrote:Hi,
I need to hold vector within vector to hold data. At run time I don't know how many vectors will be created. Each top vector will hold other vectors and those other vectors can hold other sub vectors
and the new iteration will have new top vector and so on the cycle go on.
0 top vector ===> sub vector 1 ==> sub vector 2
1 top vector ===> sub vector 1 ==> sub vector 2
===> another sub vector 1 ==> another sub vector 2
2 top vector ===> sub vector 1 ==> sub vector 2
We have two for loops
Hope I am clear in my question,
Thanks in advance,
Maki Jav wrote:but the problem is we cannot assume at runtime that the number will be same ie 3 levels. It may have more than that or less than that!
Maki Jav wrote:O my God, I am not clear!
The goal is to pick objects from that data I have.
Maki Jav wrote:Yes, but already have.
I have a example code...
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koophttps://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton