LikeWater - 1480: 模拟计算器 摘要:####这个题简单题,注意题目要求的是整数,如果用浮点数就会报错,所以老老实实用整数就行了,还有switch语句,注意要加break,不加break就会持续执行,这点运用我在 《题目 1049: [编…… 题解列表 2023年02月27日 0 点赞 1 评论 523 浏览 评分:9.9
ASCll码巧解约束项 摘要:解题思路:根据题目所列条件,我们要根据switch语句来模拟计算器,但是switch语句又不能直接根据字符来选出情况(即case后面不能直接跟'+'),所以我们可以找到一个中间量:即将…… 题解列表 2023年05月02日 0 点赞 0 评论 156 浏览 评分:9.9
用java进行的尝试 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main{ public static void main(String[] args){ S…… 题解列表 2023年07月28日 0 点赞 0 评论 174 浏览 评分:9.9
c++萌新的题解 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ //intÊÇÕûÊý 1 2 9 69 100 …… 题解列表 2023年11月09日 0 点赞 0 评论 149 浏览 评分:9.9
题解 1480: 模拟计算器 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; char c; int result; scanf("%d%d",&a…… 题解列表 2023年12月30日 0 点赞 0 评论 138 浏览 评分:9.9
1480: 模拟计算器 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b; char c; cin>…… 题解列表 2023年12月31日 0 点赞 0 评论 117 浏览 评分:9.9
java--study||O.o 摘要:参考代码:import java.util.Scanner; public class Main { public static void main(String[] args) …… 题解列表 2024年01月06日 0 点赞 0 评论 161 浏览 评分:9.9
题解 1480: 模拟计算器 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a,b; char c; cin…… 题解列表 2024年01月06日 0 点赞 0 评论 193 浏览 评分:9.9
1480: 模拟计算器 摘要:解题思路:注意事项:case后是‘符号’参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a,b; char…… 题解列表 2024年01月06日 0 点赞 0 评论 164 浏览 评分:9.9
1480: 模拟计算器(两种解法) 摘要:解题思路:注意事项:参考代码:Scanner sc=new Scanner(System.in); String str = sc.nextLine(); String[] s = str…… 题解列表 2024年04月05日 1 点赞 0 评论 346 浏览 评分:9.9