随笔分类 - 编程题-刷题 / 牛客
摘要:过于简单,至少目前这样的题做来没有意义 1. 汽水瓶 int main() { // 这个获取输入就不太常规 vector<int> in; string temp; // 读入失败getline会返回一个空 while (getline(cin, temp) && temp != "0") { i
阅读全文
摘要:给一个带 加减乘除符号、小数、不包含括号 的表达式,求值 利用双栈模拟后缀表达式计算 #include <string> #include <stack> #include <stdlib.h> #include<iostream> using namespace std; bool priorCo
阅读全文