- 博客(2)
- 收藏
- 关注
原创 中缀表达式转后缀表达式
1.先上一段后缀表达式计算的代码#include #include #include #include #include int postfix_calc(std::vector &vec) { std::stack st; double a, b; for( auto str: vec) { if( str == "+" || str =
2017-01-25 10:46:12 164
原创 lua单链表简单实现
lua实现简单的单链表,链尾的插入以及元素的删除 List = {} List.init = function( ) return {data=0, next=nil} --head->data record the length end List.insert_tail = function(l, val) local node = {data=val, next=nil}
2015-08-27 10:17:16 399
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人