Jump to content

Searching in linked list problem!

- - - - -

  • Please log in to reply
3 replies to this topic

#1
bexita

bexita

    Newbie

  • Members
  • PipPip
  • 15 posts
Hi,
I wanted to search an element (char) in the list S, but everytime it said that 02x is not in S
How to declare char input "target" in a manner way? i think the declaration is my mistake for this code. Im stucking on this. ^^





[/QUOTE]

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
You need to move "return found'" out of your while loop.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
bexita

bexita

    Newbie

  • Members
  • PipPip
  • 15 posts
Still error ,

I think the error comes from VoidPtr target , but i am not sure how to fix..

#4
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
What is your input?
What is your output?
What is your expected output?
Where's the rest of your code? For example, I have no idea what data types you're dealing with.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users