Listing 6

ln_seq::ln_seq(unsigned n)
   {
   first = last = new listnode;
   first->number = n;
   first->next = 0;
   }