Help gets you when you need it!
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.
eg:
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
for rows
for columns
Hope I am clear in my question,
Thanks in advance,
Maki jav
Help gets you when you need it!
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!
Help gets you when you need it!
Maki Jav wrote:O my God, I am not clear!
The goal is to pick objects from that data I have.
Help gets you when you need it!
Maki Jav wrote:Yes, but already have.
I have a example code...
Help gets you when you need it!
Help gets you when you need it!
Help gets you when you need it!
Getting married means "We're in love, so let's tell the police!" - and invite this tiny ad to the wedding:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|