P
Phil
Hello,
Yet another question I'm afraid. I'm trying to construct a two dimensional
array of sets (9 X 9).
The first line of code gives me a single array of nine sets and the second
line is my feeble attempt to expand the first line to a two dimensional
array of sets.
vector< set<int> > setOne(9); // 9 sets
vector< vector<int> > setTwo<int> > test(81); // 9 X 9 sets
I've tried all sorts of combinations without success. Can someone tell me
where I've gone wrong?
In case I haven't explained this very well, this is what I'm trying to
achieve for example:
setTwo[0][0].insert(2)
Yet another question I'm afraid. I'm trying to construct a two dimensional
array of sets (9 X 9).
The first line of code gives me a single array of nine sets and the second
line is my feeble attempt to expand the first line to a two dimensional
array of sets.
vector< set<int> > setOne(9); // 9 sets
vector< vector<int> > setTwo<int> > test(81); // 9 X 9 sets
I've tried all sorts of combinations without success. Can someone tell me
where I've gone wrong?
In case I haven't explained this very well, this is what I'm trying to
achieve for example:
setTwo[0][0].insert(2)