bf算法思想解析.docVIP

  • 7
  • 0
  • 约4.85千字
  • 约 13页
  • 2019-10-19 发布于安徽
  • 举报
+\ 表达式求值 #includeiostream //输入的表达式要以#结尾,如‘5+6*3/(3-1)#’ #includecstring #includecstdio #includecctype #includestack using namespace std; stackchar opter; //运算符栈 stackdouble opval; //操作数栈 int getIndex(char theta) //获取theta所对应的索引 { int index = 0; switch (theta) { case +: index = 0; break; case -: index = 1; break; case *: index = 2; break; case /: index = 3; break; case (: index = 4; break; case ): in

文档评论(0)

1亿VIP精品文档

相关文档