how can i serialize a tree struct using c++. not use mfc
-
thank u!:confused:
-
thank u!:confused:
Recursively. Christian No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002 Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002 Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
-
Recursively. Christian No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002 Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002 Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
can u t:confused:ell me more detail. such as find who is parent and who is child
-
Recursively. Christian No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002 Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002 Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
Seems like lots of kids waited until the end of the holiday weekend to do their homework.
Software Zen:
delete this;
-
Seems like lots of kids waited until the end of the holiday weekend to do their homework.
Software Zen:
delete this;
:-D /ravi Let's put "civil" back in "civilization" http://www.ravib.com ravib@ravib.com
-
Recursively. Christian No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002 Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002 Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
Not sure if this has been mentioned before ... Dictionary's definition of recursion: See Recursion :D -- Paul "If you can keep your head when all around you have lost theirs, then you probably haven't understood the seriousness of the situation." - David Brent, from "The Office" MS Messenger: paul@oobaloo.co.uk Sonork: 100.22446
-
Seems like lots of kids waited until the end of the holiday weekend to do their homework.
Software Zen:
delete this;
faint!:((
-
can u t:confused:ell me more detail. such as find who is parent and who is child
Well, if you're recursing down every branch, then the parent is the one you just found before this one, and the child is the one you find next. Clearly if you want to rebuild a tree that you've saved to disk, you need to save not just the data, but tokens that tell you where the data goes. Christian No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002 Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002 Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
-
Not sure if this has been mentioned before ... Dictionary's definition of recursion: See Recursion :D -- Paul "If you can keep your head when all around you have lost theirs, then you probably haven't understood the seriousness of the situation." - David Brent, from "The Office" MS Messenger: paul@oobaloo.co.uk Sonork: 100.22446
i assume yr tree is just a link list. u have to arrange all items in a consecutive chunk of memory before u attempt to serialize them. and each item should have some sort of ID to identify itself (example: nLevelID - to identify the depth of an item relative to root node, nItemID - identify the relative position of an item within a given level). This is necessary so that we u read back this memory from disk, u can interpret the memory and locate individual items and reconstruct the tree. good lcuk norm