数据结构
hua_juan
这个作者很懒,什么都没留下…
展开
-
栈(一)利用栈计算表达式
整理了一下使用数据结构这本书上的内容顺序栈类 sq_Stack.h#pragma once #include using namespace std; template class sq_Stack { private: int mm; int top; T*s; public: sq_Stack(int);//构造函数 ~sq_Stack();//析构函数 void prt_sq_S转载 2017-09-30 17:18:53 · 1731 阅读 · 0 评论 -
数据结构——二叉树——反转二叉树
#include<iostream> using namespace std; #define maxsize 1000 struct binary_tree_node { char data; binary_tree_node* left; binary_tree_node* right; }; class queue { private: binary_tree_原创 2017-11-25 22:06:13 · 463 阅读 · 0 评论