Because I never made one and it's the only way that I know to manage a
list of structures.
Can you help me?
Daniele
On 19 Jul 2004 15:02:41 -0700, <puppet_sock@hotmail.com> wrote:
[color=blue]
> "Daniel Ladd" <se_lachiedi@te_la_dico.it> wrote in message
> news:<opsbd9hjsdxblvrs@localhost.localdomain>...[color=green]
>> Hi,
>> I have a problem with a conceptual graph in c++.
>> I have a list of structures like this:
>> typedef struct Conceptual
>> {[/color]
> char* Name;//Rappresenta la parola da mettere nel grafo[color=green]
>> Conceptual* Next;
>> Conceptual()
>> {Next=NULL;
>> Name=NULL;
>> }
>> };[/color]
>
> Okay, first, why use "typedef" here? Why not make a class?
>
> class Conceptual
> {
> public:
> Conceptual()
> {Next=NULL;
> Name=NULL;
> }
> private:
> Conceptual* Next;
> char* Name;//Rappresenta la parola da mettere nel grafo
> };
>
> Next, you seem to be making a linked list. Why not use the
> list in the standard library?
> Socks[/color]
--
Using Opera's revolutionary e-mail client:
http://www.opera.com/m2/