#include #include static void test1( void ); void data_val_prt( int data, void * str ) { cout << (char *)str << "[" << data << "]\n"; } void main() { try { test1(); } catch( ... ) { cout << "we caught an unexpected exception\n"; } cout.flush(); } void test1 ( void ) { WCValDList list; list.append( 2 ); list.append( 3 ); list.append( 4 ); list.insert( 1 ); list.append( 5 ); cout << "\n"; list.forAll( data_val_prt, "" ); data_val_prt( list.find( 3 ), "" ); data_val_prt( list.get( 2 ), "" ); data_val_prt( list.get(), "" ); list.clear(); cout.flush(); }