468,106 Members | 1,507 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,106 developers. It's quick & easy.

Is tree structure the right concept?

Hi,

in my application I want to handle and store data in a hierarchic data
structure.
For example: persons who manage houses; houses have various numbers of
floors; floors have various numbers of rooms etc.

My first concept is to use a tree structure, to ideally save the whole
tree to file and load from file.

What do you suggest?
Would the TreeView-Component be appropriate?

Best wiches
googleo
Jul 22 '05 #1
1 1764

"googleo" <le********@netcologne.de> wrote in message
news:b5**************************@posting.google.c om...
Hi,

in my application I want to handle and store data in a hierarchic data
structure.
For example: persons who manage houses; houses have various numbers of
floors; floors have various numbers of rooms etc.

My first concept is to use a tree structure, to ideally save the whole
tree to file and load from file.
Well your data is a hierarchy, so a tree structure would seem reasonable.
But when computer people talk about trees they normally have something else
in mind. Namely a tree which can extend to infinite levels and where all the
data is the same type. For instance in a family tree, everyone is a person,
and you can have as many ancestors as you want. You data structure is
different in that you have a fixed number of levels and different data types
at each level. But if you want to call it a tree then that is fine by me.

What do you suggest?
Would the TreeView-Component be appropriate?


I have no idea what a TreeView-Component is, it has nothing to do with C++
(is it some sort of Windows thing, if so ask in a Windows programming
group). Nor has the rest of your question really but if you want to know how
to implement your chosen data structure that would be on topic in this
group.

john
Jul 22 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Steve | last post: by
4 posts views Thread by Henry Jordon | last post: by
22 posts views Thread by delraydog | last post: by
2 posts views Thread by aemado | last post: by
8 posts views Thread by =?ISO-8859-1?Q?m=E9choui?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.