searching in linked list
<p>Here is my code for searching in a linked list, but it doesn't give me the correct result. Please help me, i'm very worried about it.</p>

<pre><code>search() {

  char ser[20];
  cout &lt;&lt; "enter data to be searched" &lt;&lt; endl;
  gets(ser);

  for ( start=head; start-&gt;ptr!=NULL; start=start-&gt;ptr ) {
    if ( start-&gt;info == ser ) {
      cout &lt;&lt; "ok" &lt;&lt; endl;
      break;
    }
  }
  cout &lt;&lt; "not found" &lt;&lt; endl;
}
</code></pre>

<p>Thanks,
Saima Kanwal Bhutta</p>
