Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Nested CLists

Nested CLists

Scheduled Pinned Locked Moved C / C++ / MFC
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Dor
    wrote on last edited by
    #1

    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

    C C 2 Replies Last reply
    0
    • D Dor

      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

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • D Dor

        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

        C Offline
        C Offline
        Chris Losinger
        wrote on last edited by
        #3

        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

        image effects!

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups