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. Creating a Tree Structure

Creating a Tree Structure

Scheduled Pinned Locked Moved C / C++ / MFC
c++databasedata-structurestutorial
3 Posts 2 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.
  • P Offline
    P Offline
    Pazzuzu
    wrote on last edited by
    #1

    Hi All, I want to build a structure of userdefined elements,which will be having child & subchild elemetnts as well(Like a Tree Structure). Using STL or so... Is there any build-In facility in c++,by which I could create a tree structure like this & query for elements as well, within this structure. If not any suggestions how to proceed..... Thanks...

    H 1 Reply Last reply
    0
    • P Pazzuzu

      Hi All, I want to build a structure of userdefined elements,which will be having child & subchild elemetnts as well(Like a Tree Structure). Using STL or so... Is there any build-In facility in c++,by which I could create a tree structure like this & query for elements as well, within this structure. If not any suggestions how to proceed..... Thanks...

      H Offline
      H Offline
      HurricaneFlossie
      wrote on last edited by
      #2

      Try using an XMLDOMDoc. You can use XPath syntax to navigate the tree and find nodes. XML is a self-defining tree structure which includes it's own navigation functions. Sounds like a perfect answer to you problem. Check out the following links. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html/xmobjxmldomdocument.asp http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html/xmrefxpathsyntax.asp Some people see things that are and ask, Why? Some people dream of things that never were and ask, Why not? Some people have to go to work and don't have time for all that ... Author: George Carlin

      P 1 Reply Last reply
      0
      • H HurricaneFlossie

        Try using an XMLDOMDoc. You can use XPath syntax to navigate the tree and find nodes. XML is a self-defining tree structure which includes it's own navigation functions. Sounds like a perfect answer to you problem. Check out the following links. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html/xmobjxmldomdocument.asp http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html/xmrefxpathsyntax.asp Some people see things that are and ask, Why? Some people dream of things that never were and ask, Why not? Some people have to go to work and don't have time for all that ... Author: George Carlin

        P Offline
        P Offline
        Pazzuzu
        wrote on last edited by
        #3

        Thanks,Will try in that direction...

        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