2011年6月8日
摘要: 源自《The C Programming Language》 P62 ex4.3: 计算例如:(1 - 2) * (4 + 5)的值,采用逆波兰表示法(即后缀表示法) 代码: main.cView Code 1 #include <stdio.h> 2 #include <stdlib.h> //为了使用库函数atof 3 #include <math.h> //使用sin, exp, pow等数学函数 4 #include <string.h> //使用strcmp, strlen等字符串函数 5 #include "getop.h& 阅读全文
posted @ 2011-06-08 01:29 将军之盾 阅读(1533) 评论(5) 推荐(0) 编辑