how to build a recursive map ?

From: jose luis fernandez diaz (jose_luis_fdez_diaz_news_at_yahoo.es)
Date: 04/20/04


Date: 20 Apr 2004 07:23:58 -0700

Hi,

When I want build a tree I define the structure below:

struct node
{
  string data;
  node *leaf;
  node *right;
};

I want to define a map where each element is a map. Something similar to:

map<string, map *> m1;

Any idea ?

Thanks,
Jose Luis.



Relevant Pages

  • Re: how to build a recursive map ?
    ... > When I want build a tree I define the structure below: ... > I want to define a map where each element is a map. ...
    (comp.lang.cpp)
  • Re: how to build a recursive map ?
    ... > When I want build a tree I define the structure below: ... > I want to define a map where each element is a map. ...
    (comp.lang.cpp)
  • [RFC] log comparison, build regressions and remapping
    ... some noise in the diff, but surely it will be easy to recognize and ignore. ... If you do such comparison of build logs on ... where the lines of old tree have gone in the new one. ... To generate a map: ...
    (Linux-Kernel)
  • Re: NEED HELP WITH A PROGRAM....ANYONE PLEASE HELP!
    ... struct Node* left_child; ... if done exit the loop ... add the word to the tree -- a function you write. ... how to display it's content. ...
    (comp.lang.c)
  • Re: nodes
    ...     What am I doing here. ... Well you accessed struct node s as a pointer instead ... how do you traverse the tree to insert, ...
    (comp.lang.c)