首页
DreamJudge
院校信息
专业题库
模拟考试
机试真题
上岸课程
兑换中心
登录
注册
上岸
以下题解仅供学习参考使用。
抄袭、复制题解,以达到刷AC率/AC数量或其他目的的行为,在N诺是严格禁止的。
N诺非常重视学术诚信。此类行为将会导致您成为作弊者。具体细则请查看N诺社区规则。
carrot_huan
2025年3月4日 12:19
简单计算器 题解:数据结构里面学的中序转后序+后序求值(两个栈实现)
P1322
回复 0
|
赞 2
|
浏览 216
#include<iostream> #include<stack> #include<string> #include<map> #include<cstdio> using namespace std; //执行简单运算 float doCal(float a, float b, char c) { if (c == '+') return a + b; if (c == '-') re...
jsd
2025年2月14日 16:38
简单计算器 题解:
P1322
回复 0
|
赞 2
|
浏览 210
#include<bits/stdc++.h> using namespace std; int main() { string s; map<int, int> mp = {{'$', 1}, {'+', 3}, {'-', 3}, {'*', 4}, {'/', 4}};//定义优先级 while(getline(cin, s)) { &nb...
题目
简单计算器
题解数量
2
发布题解
在线答疑
热门题解
1
简单计算器 题解:
2
简单计算器 题解:数据结构里面学的中序转后序+后序求值(两个栈实现)