How to loop a list that is in a list?

Hey all smart people!

I have a question about list.
I have create a list in the main program that i each of the element of this list has another list. How will I loop it throug it?

For ex:
1
2
3
4
5
6
7
8
  list <parents> l1;
    list<parents> ::iterator it;
    
    for(it=l1.begin(); it!=l1.end();it++){   //This is the first loop but how 
                                             //to write the second one???
        parents b = *it
        
    }

How would you write it for a single parents object? Take how you would do that, stick it in the loop and apply it to *it.
Topic archived. No new replies allowed.