⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tableb.cpp

📁 Data Abstraction & Problem Solving with C++源码
💻 CPP
字号:
// ********************************************************// Excerpts from the implementation file TableB.cpp. // Binary search tree implementation.// ********************************************************#include "TableB.h"  // header filevoid Table::tableInsert(const TableItemType& newItem){      bst.searchTreeInsert(newItem);      ++size;}  // end tableInsertvoid Table::tableDelete(KeyType searchKey)            throw(TableException){   try   {  bst.searchTreeDelete(searchKey);   }  // end try   catch (TreeException e)   {  throw TableException("TableException: Item not found on delete");   }  // end catch}  // end tableDeletevoid Table::tableRetrieve(KeyType searchKey,                           TableItemType& tableItem) const                          throw(TableException){   try   {  bst.searchTreeRetrieve(searchKey, tableItem);   }  // end try   catch (TreeException e)   {  throw TableException("TableException: Item not found on retrieve");   }  // end catch}  // end tableRetrievevoid Table::traverseTable(FunctionType visit){   bst.inorderTraverse(visit);}  // end traverseTable// End of implementation file.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -