[编程入门]温度转换 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std ;int main(){ float f ; cin>>f ; f…… 题解列表 2022年05月05日 0 点赞 0 评论 530 浏览 评分:0.0
小数点后保留N位 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){ float a,c; c…… 题解列表 2022年04月24日 0 点赞 0 评论 551 浏览 评分:0.0
1005: [编程入门]温度转换(C++) 摘要:解题思路:注意事项: 一定要注意输出的格式,是c=xx参考代码:#include<iostream> #include<iomanip> using namespace std; int mai…… 题解列表 2022年04月20日 0 点赞 0 评论 2102 浏览 评分:9.9
1005: [编程入门]温度转换 摘要:解题思路:保留两位小数在C中可以printf("%.2f\n", c),在C++中可以#include <iomanip>然后cout << fixed << setprecision(2)。注意事项…… 题解列表 2022年02月20日 0 点赞 0 评论 1456 浏览 评分:8.0
1005: [编程入门]温度转换C++ 1005:[编程入门]温度转换题目1005:[编程入门]温度转换时间限制:1Sec内存限制:128MB提交:116828解决:40199题目描述输入一个华氏温度,要求输出摄氏温度。公式为c=5(F-32)/9,取位2小数。输入一个华氏温度,浮点数输出摄氏温度, 题解列表 2022年01月03日 0 点赞 1 评论 1364 浏览 评分:6.0
温度转换AC题解 摘要:解题思路:本题主要是用fixed函数,和setprecision函数注意事项:本题是浮点数类型,需要用float或double参考代码:#include<bits/stdc++.h>//万能的开头码u…… 题解列表 2021年09月11日 0 点赞 0 评论 779 浏览 评分:2.0
[编程入门]温度转换c++ 摘要:参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){ double c,f; cin >> f…… 题解列表 2021年02月26日 0 点赞 0 评论 1666 浏览 评分:9.9
[编程入门]温度转换-题解(C++代码) 摘要:解题思路: 本题提供俩种方式,请直接看图:注意事项:本题用printf较为方便,注释的为c++通过代码参考代码:#include<iostream> #include<iomanip> using…… 题解列表 2021年01月23日 0 点赞 0 评论 1459 浏览 评分:9.4
[编程入门]温度转换-题解(C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std ;int main(){ float f ; c…… 题解列表 2020年12月11日 0 点赞 0 评论 686 浏览 评分:2.0
[编程入门]温度转换-题解(C++代码) 摘要:解题思路:通过iomanip库的fixed函数和setprecision函数解决问题注意事项:本题出现的两个变量都注明是浮点数,所以要定义为float类或double类参考代码:#include<io…… 题解列表 2020年10月08日 3 点赞 2 评论 2409 浏览 评分:8.2