diff --git "a/doc/\347\216\213\346\231\223\345\274\272-\344\270\252\344\272\272\346\212\245\345\221\212.md" "b/doc/\347\216\213\346\231\223\345\274\272-\344\270\252\344\272\272\346\212\245\345\221\212.md" index a3ed0b2..49ca8e2 100644 --- "a/doc/\347\216\213\346\231\223\345\274\272-\344\270\252\344\272\272\346\212\245\345\221\212.md" +++ "b/doc/\347\216\213\346\231\223\345\274\272-\344\270\252\344\272\272\346\212\245\345\221\212.md" @@ -45,6 +45,7 @@ - 继承属性通知发生器(`Proxy_PropertyNotification`) - 设计`virtual`析构函数, `virtual`清空函数(不同模型将使用不同清空动作) - 树模板声明 + ```C++ template > class BaseTree : public Proxy_PropertyNotification> { @@ -61,6 +62,7 @@ void clear(); }; ``` + - **设计二叉查找树模型, 提供动态查找的基本操作(插入, 删除, 静态查找)** - 树节点继承基类树节点, 树继承基类树 - 实现插入, 删除, 查找算法 @@ -78,6 +80,7 @@ void erase(const T& key); }; ``` + - **设计ViewModel单例, 管理Model, 命令, 通知接收器, 通知发生器** - 继承属性通知发生器(`Proxy_PropertyNotification`) - 继承命令通知发生器(`Proxy_CommandNotification`) @@ -104,6 +107,7 @@ - 详见`/project/ViewModel/Commands/*.*` #### 单元测试 - 二叉查找树 + ```C++ #include "BST.h" int main() @@ -131,6 +135,7 @@ return 0; } ``` + - 程序运行输出 ![testBST](https://github.com/SummerZJU/CSummerZJU/blob/master/image/Model/testBST.png "testBST") @@ -153,6 +158,7 @@ - 详见`/project/ViewModel/Commands/*.*`, `/project/Model/*.*` #### 单元测试 - 平衡二叉树 + ```C++ #include "AVLTree.h" @@ -177,6 +183,7 @@ return 0; } ``` + - 程序运行输出 ![testAVL](https://github.com/SummerZJU/CSummerZJU/blob/master/image/Model/testAVL.png "testAVL") @@ -227,6 +234,7 @@ return 0; } ``` + - 程序运行输出 ![testRBT](https://github.com/SummerZJU/CSummerZJU/blob/master/image/Model/testRBT.png "testRBT")