摘要: 题目:输入某二叉树的前序遍历和中序遍历结果,重建该二叉树。(假设输入的前序和中序遍历结果中都不含重复数字) 思路 构建二叉树的两个函数:Construct()、ConstructCore() Construct()面向输入数据(用户),ConstructCore()面向处理数据(程序) 通过Cons 阅读全文
posted @ 2019-12-09 23:45 cxc1357 阅读(154) 评论(0) 推荐(0)
摘要: 滚轮事件:滚动滚轮实现窗口大小缩放 widget.h中增加: protected: void wheelEvent(QWheelEvent *event) Q_DECL_OVERRIDE; void extendWindowsSize(); void shrinkWindowsSize(); pri 阅读全文
posted @ 2019-12-09 14:46 cxc1357 阅读(359) 评论(0) 推荐(0)