Hi everyone..
How can i delete a pointer in a member function which return that pointer
for example:
I hope you answer meCode:Node<T>* Rpointer(T item) { Node<T> *t11; t11=head; while( t11 != NULL && t11->data != item) { t11=t11->next; } if(t11==NULL) { cout<<"Not Found"; delete t11; return 0; } return t11; }