Nested CLists
-
Does anybody know if you can have nested CLists. Ive tried putting a CList into a struct and then making a CList of that struct but it gave out a whole lot of errors. Cheers Dor
First the obligatory disclaimer - CList is garbage. Use std::list instead. What you may have is something like this: list<list<int>> mylist; which looks like a list of lists of ints, but instead you have the two >> symbols next to each other, which the compiler interprets as a shift operator. If that is your probilem, just insert a space. Christian We're just observing the seasonal migration from VB to VC. Most of these birds will be killed by predators or will die of hunger. Only the best will survive - Tomasz Sowinski 29-07-2002 ( on the number of newbie posters in the VC forum ) Cats, and most other animals apart from mad cows can write fully functional vb code. - Simon Walton - 6-Aug-2002
-
Does anybody know if you can have nested CLists. Ive tried putting a CList into a struct and then making a CList of that struct but it gave out a whole lot of errors. Cheers Dor
yes, you can. what kind of errors? -c
To explain Donald Knuth's relevance to computing is like explaining Paul's relevance to the Catholic Church. He isn't God, he isn't the Son of God, but he was sent by God to explain God to the masses.
/. #3848917