User Profile

Collapse

Profile Sidebar

Collapse
ThomasKA
ThomasKA
Last Activity: Sep 22 '10, 03:41 PM
Joined: Sep 22 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • ThomasKA
    replied to redifinition error
    in C
    I found the error. I had an old hidden headerfile. Don't know how it got there but now it's gone
    See more | Go to post

    Leave a comment:


  • ThomasKA
    started a topic redifinition error
    in C

    redifinition error

    I get the following error:
    Node.h:9: error: redefinition of 'class Node'
    Node.h:8: error: previous definition of 'class Node'

    When I compile my program. I cannot understand why it pops up since I have used hedder guards.
    Code:
    #ifndef Node_H
    #define Node_H
    
    #include <iostream>
    using namespace std;
    
    //class node has four fields: type, child1, child2 and parent. The type is -1 if it
    ...
    See more | Go to post
    Last edited by Banfa; Sep 22 '10, 01:14 PM. Reason: Added [code] ... [/code] tags round the code.
No activity results to display
Show More
Working...