摘要:
题目描述:对于一个不存在括号的表达式进行计算输入:存在多种数据,每组数据一行,表达式不存在空格输出:输出结果样例输入:6/2+3+3*4样例输出:18 1 #include <stdio.h> 2 #include <stack> 3 #include <string.h> 4 #include <cctype> 5 using namespace std; 6 7 int pri[5][5] = { { 0, 0, 0, 0, 0 }, { 1, 0, 0, 0, 0 }, { 1, 0, 0, 0, 0 }, { 1, 8 1, 1, 0,
阅读全文