朋友给了一封情书,可是我看不懂,求翻译~#includeusing namespace std;#include#includedouble footToMeter(double foot){return 0.305*foot;}double meterToFoot(double meter){return meter/0.305;}void display(){cout
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/30 14:25:03
朋友给了一封情书,可是我看不懂,求翻译~#includeusing namespace std;#include#includedouble footToMeter(double foot){return 0.305*foot;}double meterToFoot(double meter){return meter/0.305;}void display(){cout
朋友给了一封情书,可是我看不懂,求翻译~
#include
using namespace std;
#include
#include
double footToMeter(double foot)
{
return 0.305*foot;
}
double meterToFoot(double meter)
{
return meter/0.305;
}
void display()
{
cout
朋友给了一封情书,可是我看不懂,求翻译~#includeusing namespace std;#include#includedouble footToMeter(double foot){return 0.305*foot;}double meterToFoot(double meter){return meter/0.305;}void display(){cout
你朋友给的程序运行结果如下,是英尺到米的转换,具体寓意不清楚
Feet Meters Meters Feet
1.000 0.305 20.000 65.574
2.000 0.610 25.000 81.967
3.000 0.915 30.000 98.361
4.000 1.220 35.000 114.754
5.000 1.525 40.000 131.148
6.000 1.830 45.000 147.541
7.000 2.135 50.000 163.934
8.000 2.440 55.000 180.328
9.000 2.745 60.000 196.721
10.000 3.050 65.000 213.115