2765计算分数浮点值 c++
摘要:#include <iostream>#include <iomanip>using namespace std;int main( ) { int a, b; double ……
题解 2765: 计算分数的浮点数值
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a = 0.0; int b = 0.0; double c = 0; scanf("%d %d", &……
2765: 计算分数的浮点数值
摘要:解题思路:注意事项:setprecision(n)是控制有效数字位数 使用时需加头文件#include<iomanip> ,如果要控制小数点后的位数需加fixed。(double) a/b……