您的位置:首页 > 理论基础 > 数据结构算法

数据结构 一 (栈 & 循环队列 & 链式队列)

2017-07-12 10:28 357 查看


栈实现计算器:满足加减乘除功能
功能函数:
int compute_expression(char *q) 表达式运算函数
int deal_with_operator(Linkstak *opd_stack,Linkstack *opt_stack,char operator)运算符处理函数
int compute(Linkstack *opd_stack,Linkstack *opt_stack)运算函数
int get_level(char operator)优先级函数
举例子 9*5+4













//---------------------------------------------------------------------------------------------------------------------------------------------//


循环队列














//---------------------------------------------------------------------------------------------------------------------------------------------//

链式队列 = 带头链表 + 队列头(即首尾指针)









//------------------------------------------------------------------------------------------------------------------------------------------------------//
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐