home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / PROG_C / CL187A.ZIP / EXAMP601.CPP < prev    next >
C/C++ Source or Header  |  1994-03-15  |  638b  |  21 lines

  1.                // examp601.cpp - link with cl.obj
  2.                // Container Lite (CL v 1.87a)
  3.                // (C) Copyright John Webster Small 1994
  4.                // All rights reserved
  5.  
  6.            #include "cl.h"
  7.  
  8.            cl& clr(cl& b)  { b.allClr(); return b; }
  9.  
  10.                char *v[] = {"line one ", "line two ", 0 };
  11.  
  12.                main()
  13.                {
  14.                     cl b ((void **) v);
  15.                     b << clr;
  16.                     b.atIns(0,"only line");
  17.                     while (++b)
  18.                          cout << (char *) b.get() << "\n";
  19.                     return 0;
  20.                }
  21.