meissner61

dfb

May 23rd, 2011
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.21 KB | None | 0 0
  1. void deletefromfront(intList* i)
  2. {
  3.     if(i->nofitems==0)
  4.     {
  5.         cout<<"Cant delete-no items";
  6.         return;
  7.     }
  8.  
  9.     else
  10.     {
  11.         Listitem* item=i->firstitem;
  12.  
  13.         delete(item);
  14.  
  15.         item=NULL;
  16.  
  17.         i->nofitems--;
  18.  
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment