[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem on compiling linked list
From: |
ATAboy |
Subject: |
Re: Problem on compiling linked list |
Date: |
Wed, 27 Feb 2008 01:42:04 -0800 (PST) |
User-agent: |
G2/1.0 |
On 26 Peb, 14:00, Paul Pluzhnikov <ppluzhnikov-...@gmail.com> wrote:
> ATAboy <tipidpc.ata...@gmail.com> writes:
> > typedef struct {
> > struct SDTNode* child[MAXKEYNUM]; <---- this one
> > void* data;
> > } SDTNode; <-- and this one
>
> This code is indeed not valid C++.
>
> To make it valid (both for C and C++), change it so:
>
> typedef struct SDTNode {
> struct SDTNode* child[MAXKEYNUM];
> void* data;
>
> } SDTNode;
>
> Cheers,
> --
> In order to understand recursion you must first understand recursion.
> Remove /-nsp/ for email.
Thanks Paul