7行C++代码实现 摘要:##注意事项 题目中需要保留两位小数,而C++中需要保留两位小数不像C那样,只需要printf("%0.2f",n);就可以实现 但也不是很繁琐,只需要添加头文件#include即可,在输出那里写…… 题解列表 2023年05月03日 0 点赞 0 评论 778 浏览 评分:9.9
温度转换(自定义函数) 摘要:解题思路:先定义一个转换并输出的函数,再在主函数中调用它就好了。注意事项:1.保留两位小数。 2.9分之5怎么转换成除法。参考代码:#include<bits/stdc…… 题解列表 2022年05月28日 1 点赞 0 评论 1065 浏览 评分:9.9
1056: 二级C语言-温度转换 摘要:解题思路:一模一样的题目传送门:https://blog.dotcpp.com/a/84233最近比较忙,没时间刷题,写点不要脑子的水一哈。注意事项:好像发表情不会显示……好落后的平台啊参考代码:#i…… 题解列表 2022年03月23日 0 点赞 0 评论 1190 浏览 评分:9.9
温度转换(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){ float c,F; c…… 题解列表 2022年10月23日 0 点赞 0 评论 751 浏览 评分:9.9
1056: 二级C语言-温度转换 摘要:```cpp #include #include using namespace std; int main() { double f; cin>>f; cou…… 题解列表 2023年01月31日 0 点赞 1 评论 1167 浏览 评分:9.9
二级C语言-温度转换-题解(C++代码) 摘要:解题思路:用scanf,printf;注意事项:5*(f-32)/9一定要这样写!!!!!!!!!!!!!参考代码:#include <bits/stdc++.h>using namespace st…… 题解列表 2020年08月12日 0 点赞 2 评论 2583 浏览 评分:9.9
二级C语言-温度转换-题解(C++代码)(一看就懂,哈哈哈) 摘要:原题链接:[温度转换](https://www.dotcpp.com/oj/problem1056.html "温度转换") 解题思路: 1.首先定义两个浮点数C,F。(字母可以是任意的,…… 题解列表 2020年04月06日 0 点赞 0 评论 2744 浏览 评分:9.9
C二级辅导-温度转换 (C++代码) 摘要:解题思路:C++主要是保留两位小数很蛋疼注意事项:1.引用头文件 iomanip2.cout<<setiosflags(ios::fixed);//如果没有这一句 结果是保留两位有效数字而非两位小数3…… 题解列表 2017年07月18日 0 点赞 0 评论 2348 浏览 评分:9.5
二级C语言-温度转换-题解(C++代码) 摘要:套公式我们都知道:所以c就等于:(f-32)/9*5代码如下:#include<iostream> using namespace std; int main() { int f; do…… 题解列表 2021年02月03日 0 点赞 0 评论 1072 浏览 评分:9.3
C++ 温度换算 摘要:解题思路:注意事项: 简单编程,注意用float参考代码:#include<bits/stdc++.h> using namespace std; int main() {…… 题解列表 2023年09月10日 0 点赞 0 评论 706 浏览 评分:8.7