Manoj Sharma wrote:
> Hi,
> 
> Can some one tell me whats wrong with following program.
> Following program is to create binary tree.
> I tryed this program on Solaris and getting following compile time error.
> "createTree.cpp", line 18: Error: Node* is not a structure type.
> "createTree.cpp", line 19: Error: Node* is not a structure type.
> "createTree.cpp", line 20: Error: Node* is not a structure type.
> 
>     Node(int val)
>     {
>         this.left = NULL;
>         this.right = NULL;
>         this.value = val;
>     }

Take another closer look at lines 18 through 20.  You make the same 
mistake on all three lines.  this. vs. this->

-- 
Thomas Hruska
CubicleSoft President
Ph: 517-803-4197

*NEW* MyTaskFocus 1.1
Get on task.  Stay on task.

http://www.CubicleSoft.com/MyTaskFocus/

Reply via email to