Re: how to build a recursive map ?
From: John Harrison (john_andronicus_at_hotmail.com)
Date: 04/20/04
- Next message: Julie: "Re: Index a #define string"
- Previous message: Thomas Matthews: "Re: Decompiler"
- In reply to: jose luis fernandez diaz: "how to build a recursive map ?"
- Next in thread: Dan Cernat: "Re: how to build a recursive map ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 20 Apr 2004 16:35:27 +0100
"jose luis fernandez diaz" <jose_luis_fdez_diaz_news@yahoo.es> wrote in
message news:c2f95fd0.0404200623.77eb425f@posting.google.com...
> 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.
Like this
class Recursive
{
public:
...
private:
map<string, Recursive*> m1;
};
john
- Next message: Julie: "Re: Index a #define string"
- Previous message: Thomas Matthews: "Re: Decompiler"
- In reply to: jose luis fernandez diaz: "how to build a recursive map ?"
- Next in thread: Dan Cernat: "Re: how to build a recursive map ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|