help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem on compiling linked list


From: Paul Pluzhnikov
Subject: Re: Problem on compiling linked list
Date: Mon, 25 Feb 2008 22:00:04 -0800
User-agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, linux)

ATAboy <tipidpc.ataman@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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]