// File: bsqmain.C // // Testing the BStringQ class #include #include #include #include #include "bstrq.h" main() { BStringQ S ; BString bs ; int length ; S.enqueue("Space") ; S.enqueue("the") ; S.enqueue("final") ; S.enqueue("frontier") ; S.enqueue("These") ; S.enqueue("are") ; S.enqueue("the") ; S.enqueue("voyages") ; S.enqueue("of") ; S.enqueue("the") ; S.enqueue("starship") ; S.enqueue("Enterprise") ; S.print() ; cout << endl ; length = S.length() ; cout << "length = " << length << endl ; cout << endl ; S.remove("the") ; S.print() ; cout << endl ; }