On Thu, Aug 27, 2009 at 6:22 PM, thefirstrepairdad <[email protected]>wrote:

> --- In [email protected], Brett McCoy <idragos...@...> wrote:
>
> > >
> > > extern struct DATA *initialize_list(const DATA *llist);
> > > extern struct ENTRY *initialize_list(const ENTRY *llist);
> >
> > Personally I'd take this a step further and use classes for this kind
> > of thing, so you don't have to deal with function overloading like
> > this... you're already using C++, so why not? It will make your life a
> > lot easier, believe me.
> >
> > -- Brett
>
I can't figure out how to "type" some of the procedures within my class.
This one works:

long int Data::validate_nodes(const DATA *llist)
{
    DATA    *tlist  = llist;
    long int        cnt     = 0L;
    long int        errCnt  = 0L;
...
}

This one gets an error:

DATA * Data::append_list(const DATA *llist, char *newdata)
{
    DATA    *temp;
    DATA    *tlist;
...
}

I also tried:

Data::DATA * append_list(const DATA *llist, char *newdata)
{
    DATA    *temp;
    DATA    *tlist;
...
}

Can someone set me straight on these?

Thanks,

~Rick


[Non-text portions of this message have been removed]

Reply via email to