摘要: 一、 #include <iostream> using namespace std; class MyStack { private: char *m_pBuffer; //栈空间指针 int m_iSize; //栈容量 int m_iTop; //栈顶,栈中元素个数 public: MySta 阅读全文
posted @ 2019-11-21 15:24 慕尘墨染 阅读(188) 评论(0) 推荐(0)
摘要: #include <iostream> using namespace std; class Node { public: int data;//节点数据 Node *next; void printNode() { cout << data <<endl; } }; class List { pr 阅读全文
posted @ 2019-11-21 15:11 慕尘墨染 阅读(282) 评论(0) 推荐(0)