Facebook
From Colorant Ostrich, 5 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 241
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. void del2(node *H, int x)
  6. {
  7.     node *p=H;
  8.    
  9.     while(p!=NULL && p->val != x)
  10.     {
  11.         p=p->next;
  12.     }
  13.     if (p!=NULL)
  14.     {
  15.         del(p->val)''
  16.     }
  17.    
  18. }