• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
changed
博客园 | 首页 | 新随笔 | 新文章 | 联系 | 订阅 订阅 | 管理

随笔分类 -  数据结构

 
链接栈
摘要:#include using namespace std; typedef int stackEntry; const int overflow = 1; const int underflow = 2; const int success = 0; struct Node { stackEntry data; Node *next; }; class stack { public:... 阅读全文
posted @ 2016-12-10 23:51 changed 阅读(230) 评论(0) 推荐(0)
括号匹配--栈
摘要:#include <iostream>using namespace std;typedef char stackEntry;const int maxstack = 100;//栈的最大尺寸class stack{public: stack(); void pop(); void push(con 阅读全文
posted @ 2016-12-10 14:53 changed 阅读(181) 评论(0) 推荐(0)
反转波兰计算器
摘要:#include <iostream>using namespace std;typedef double stackEntry; const int overflow = 1;const int underflow = 2;const int success = 0; const int maxs 阅读全文
posted @ 2016-12-08 21:52 changed 阅读(527) 评论(0) 推荐(0)
栈的应用 乘坐校园通勤车
摘要:#include <iostream>using namespace std;typedef int stackEntry;const int maxstack = 100;//栈的最大尺寸class stack{public: stack(); void pop(); void push(cons 阅读全文
posted @ 2016-12-08 15:42 changed 阅读(140) 评论(0) 推荐(0)
链表c++实现一
摘要:#include <iostream>using namespace std; typedef char nodeEntry; struct Node{ //数据成员 nodeEntry data; Node* next; //构建函数 Node(); Node(nodeEntry item,Nod 阅读全文
posted @ 2016-12-07 20:53 changed 阅读(198) 评论(0) 推荐(0)
 

公告


博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3