// File: main2.C
//
// Testing the GenList template with strings

#include <iostream.h>
#include <iomanip.h>
#include <stdlib.h>
#include "bstring4.h"
#include "genlist2.h"

main() {
   GenList<BString> L ;

   L.append("Space,") ;
   L.append("the") ;
   L.append("final") ;
   L.append("frontier.") ;
   L.append("These") ;
   L.append("are") ;
   L.append("the") ;
   L.append("voyages") ;
   L.append("of") ;
   L.append("the") ;
   L.append("Starship") ;
   L.append("Enterprise.") ;

   L.print() ;
   cout << endl ;
   cout << "length = " << L.length() << endl ;
   cout << endl ;

   L.remove("the") ;
   L.print() ;
   cout << endl ;
   cout << "length = " << L.length() << endl ;
   cout << endl ;
}
