home *** CD-ROM | disk | FTP | other *** search
- #include "oath/minString.h"
-
- #include <fstream.h>
-
- /////////////////////////////////////////////////////////////////////////////
- // Test of minStrings
-
- main()
- {// Create some Characters //////////
- characterA R = characterA::make('r');
- characterA S = characterA::make('s');
- characterA T = characterA::make('t');
- characterA L = characterA::make('l');
- characterA N = characterA::make('n');
- characterA E = characterA::make('e');
- characterA A = characterA::make('a');
-
- // Create some Strings //////////
- stringA Star = minStringA::make() << T << A << R;
- cout << Star.am() << "\t(" << Star.hash() << ")" << endl;
-
- stringA Sstare = minStringA::make() << S << Star << E;
- cout << Sstare.am() << "\t(" << Sstare.hash() << ")" << endl;
-
- // Save the Strings //////////
- ofstream File ("ms2.obj");
-
- Star.export(File);
- Sstare.export(File);
-
- }
-