void remove(int x, Cell*& L) { if(L != NULL) { if(L->item == x) { Cell* p = L; L = L->next; delete p; } else remove(x, L->next); } }