void TestFind(Container_t<T>& _obj) { if(_obj.Count() == 0) { cout<<"no items"<<endl; return; } cout<<"please choose an index(0-"<<(_obj.Count()-1)<<")"<<endl; int index; cin>>index; try { T item = _obj.Find(index); cout<<"found item is "<< item <<endl; } catch(TException_t<int>& err) { cout<<err.GetDesCription(); } }
void TestCount(Container_t<T>& _obj) { cout<<"num of items is: "<<_obj.Count()<<endl; }