home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_300 / 352_01 / lcbelow.cpp < prev    next >
C/C++ Source or Header  |  1991-04-24  |  395b  |  17 lines

  1. // LCBELOW.CPP -
  2. //         contains LinkClass::insertBelow()
  3. //        routine for inserting a new node below the 'this' node.        
  4. #include <stdlib.h>
  5. #include <alloc.h>
  6. #include <iostream.h>
  7. #include "wtwg.h"
  8.  
  9. #include "dblib.h"
  10.     void LinkClass::insertBelow ( LinkClass &existing )
  11.     {
  12.     pv = existing.pv;
  13.     nx = &existing;
  14.     pv->nx = this;
  15.     nx->pv = this; 
  16.     };    // end LinkClass::insertBelow()
  17.