总结
1. '_' 运算符不是 a*10 + b, 而是 a*(10 or 100) + b
2. char * 与 string 的相互转化
char* = string.c_str()
string = char*
3. 中缀表达式转后者表达式 参考:http://www.cnblogs.com/xinsheng/p/3591781.html
4. 通用的中缀转后缀, 用 string 存数据比较好
代码 未通过九度测试
#include #include #include #include #include #include #include #include #include