| Author |
Trying to learn link list
|
Yafet Negussie
Greenhorn
Joined: Mar 17, 2012
Posts: 4
|
|
Hi,
I'm trying to learn link lists. I understand the general concept, but I'm having difficulties implementing simple singly linked list. Here is the code so far, but it doesn't compile... I appreciate any explanations of what I'm doing wrong and how the code is supposed to be implemented.
|
 |
Junilu Lacar
Bartender
Joined: Feb 26, 2001
Posts: 4118
|
|
|
Next time, you should post the compiler error message as well; that will help folks help you. On Line 15, you are trying to instantiate a Node with a no-argument constructor. However, as you have written Node, it doesn't have a no-argument constructor.
|
Junilu - [How to Ask Questions] [How to Answer Questions] [MiH]
|
 |
 |
|
|
subject: Trying to learn link list
|
|
|