#include using namespace std; void del2(node *H, int x) { node *p=H; while(p!=NULL && p->val != x) { p=p->next; } if (p!=NULL) { del(p->val)'' } }