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. Other Discussions
  3. Article Writing
  4. Muli-demenitional arrays

Muli-demenitional arrays

Scheduled Pinned Locked Moved Article Writing
c++question
3 Posts 3 Posters 2 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.
  • M Offline
    M Offline
    mel
    wrote on last edited by
    #1

    Anyone have a class to create multi-dimensional arrays of, for instance, CObject-derived objects? Or is there already an MFC class to do this?

    R 1 Reply Last reply
    0
    • M mel

      Anyone have a class to create multi-dimensional arrays of, for instance, CObject-derived objects? Or is there already an MFC class to do this?

      R Offline
      R Offline
      Rick Benish
      wrote on last edited by
      #2

      COBArray

      A 1 Reply Last reply
      0
      • R Rick Benish

        COBArray

        A Offline
        A Offline
        Ancient Dragon
        wrote on last edited by
        #3

        Isn't this just a single-dimensional array? What I have in mind is to do something like this: CObject* pObj; CMultiArray array; array.SetAt(row,col,pObj); pObj = array.GetAt(row,col); or maybe something like this: array(row,col) = pObj; pObj = array(row,col);

        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