c++
I'mVeryLow
一旦匿名了,人性就暴露了。
展开
-
C++ 栈stack之括号匹配
#include <iostream>#include <stack> // stack#include <cstdlib>#include <string.h> //strlenusing namespace std;bool isRes(char * str){ stack<char> str_s; int...原创 2018-09-22 23:24:13 · 371 阅读 · 0 评论 -
c++栈之中缀表达式求值
#include <iostream>#include <stack>#include <string.h>using namespace std;int calNum(char * str){ int str_len = strlen(str); stack<int> stack_num; for (int x=0...原创 2018-09-23 09:17:23 · 2067 阅读 · 0 评论