题解 2936: 简单算术表达式求值
摘要:解题思路:用find查找运算符所在的位置,然后用切片的方式分离运算数,最后执行运算。&nbs……
2936:简单算数表达式求值;;;;;;题解
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int s(int a,char c,int b){&nbs……
2936: 简单算术表达式求值
摘要:```cpp
#include
using namespace std;
int js(int a,char c,int b){
if(c=='+') cout……
2936: 简单算术表达式求值
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;ll jiafa (ll x,ll y,……
2936: 简单算术表达式求值
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;ll jiafa (ll x,ll y,……
编写题解 2936: 简单算术表达式求值
摘要:```c
#include
int main()
{
int num_1,num_2;
char ch;
int result;
int function(int num_1,i……
题解 2936: 简单算术表达式求值
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int yun(int x,int y,char z){ int d; if(z=='+') d=x+y; ……
简单算术表达式求值(整点花活,三目运算符)
摘要:参考代码:
```c
#include
int main()
{
int a;
char c;
int b;
scanf("%d%c%d",&a,&c,&b);
int d……
编写题解 2936: 简单算术表达式求值(C++)
摘要:解题思路:使用switch参考代码:#include<bits/stdc++.h>using namespace std;int main(){ char ch; int a,b; ……