I have created an array of sets as follows:
set<int> A[2];
and wrote some code to access it.
Now, I want to create an array of sets of sets. i.e. something to store
A = [{[1],[3]} {[1],[3,4]} where A is an array of two set elements and the second set element also contains a set [3,4] within it.
I tried:
set<set<int>> A[2];
the difinition was compiled. However, I don't know how to access this data structure.
Any ideas of how to implement an array of sets of sets?
Now A[0] contains two sets S1 and s2 exactly as what I want.
The problem is that I couldnt figure out how to write code to access them. I tried to use an iterator but didn't work. For example, how would I display the content of A[0].