括号匹配 //括号的匹配intmatching(){Stack s;InitStack(s);intflag=1;charch[10]="[(]]#";//读入//cin >> ch;inti=0;while(ch[i]!='#'&&flag!=0)//假设字符串以#结尾{if(ch[i]=='('||ch[i]=='['){PushbackStack(s,ch[i]);//入栈}if(ch[i]==')'||ch[i]==']'){if(IsE...
/** ** 2017.11.4 ** Ahthor:799 ** 数制转换 ** ***/ #include <bits/stdc++.h> using namespace std; #define STACK_INIT_SIZE 100 /// 存储空间初始分配 #define STACK_INCREMENT 10 /// 存储空间分配增量 #define ElemType char #define Status int #define OK 1 #define ERROR -1 #define ...