Hash table with chaining

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Soko San
    New Member
    • Dec 2011
    • 5

    Hash table with chaining

    Hey all i really hope you can help me out.

    Im compiling a project and im getting error which is saying: 'Remove' : local function definitions are illegal.

    Anyone know what this mean? And especially HOW to fix it??

    Thanks.. Sorry if this is a stupid question.. I AM still a beginner.

    Greetz
  • YarrOfDoom
    Recognized Expert Top Contributor
    • Aug 2007
    • 1243

    #2
    If you count the brackets in HASH::retrieve( int) you'll notice you are missing a closing bracket there.
    The compiler thinks you have defined HASH::Remove(in t) inside HASH::retrieve( int) because its body is never closed.

    Comment

    • Soko San
      New Member
      • Dec 2011
      • 5

      #3
      Thank u soooo much :D I didn't notice that (how stupid am I)
      anyway thank u so much :)

      Comment

      Working...