Its the remove() function, not delete.
Your question is not clear to me but I think this is what you want..
The problem is line 42. Check before printing.
if(p!=NULL)
cout<<"Title :"<<p->name_1<<endl;
v3ga
Junior Poster in Training
95 posts since Oct 2011
Reputation Points: 14
Solved Threads: 4
Why don't you Make search() function return a value and check using it in the remove() function.
v3ga
Junior Poster in Training
95 posts since Oct 2011
Reputation Points: 14
Solved Threads: 4