
C++
Aray1234
Work hard, play hard!
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
基于C++的二叉树的创建、前序中序重建、前序遍历、中序遍历、后序遍历、广度优先、深度优先以及镜像树
#include "iostream" #include "queue" #include "stack" #include "stdexcept" using namespace std; std::logic_error e("Invalid error"); struct BinaryTreeNode{ char m_nValue; BinaryTreeNode *m_left; BinaryTreeNode *m_right; }; ///////////////////////////.原创 2020-05-29 21:26:31 · 317 阅读 · 0 评论 -
POJ1013 Counterfeit Dollar
程序代码: #include #include using namespace std; char Left[3][7]; //天平左边硬币 char Right[3][7]; //天平右边硬币 char result[3][7]; //结果 bool IsFake(char c,bool light); //light为真表示假设假币为轻,否则表示假设假币为重 int main(){ i原创 2018-01-12 14:57:02 · 358 阅读 · 0 评论