【C++ Primer Plus】第三章课后作业 您所在的位置:网站首页 十升一百公里然后油耗多少 【C++ Primer Plus】第三章课后作业

【C++ Primer Plus】第三章课后作业

2024-07-17 09:23| 来源: 网络整理| 查看: 265

第三章课后作业

1.编写一个小程序,要求用户使用一个整数指出自己的身高(单位为英寸),然后将身高转换为英尺和英寸。该程序使用下划线字符来指示输入位置。另外,使用一个const符号常量来表示转换因子。

#include using namespace std; int main() { const int a=12; int length; coutlength; cout const int a=60; double degrees; double minutes; double seconds; cout long long world_population; long long US_population; coutworld_population; coutUS_population; double percent=double (US_population)/double (world_population); cout double EU, US; cout EU; US = 1 / EU * 62.14 * 3.875; cout


【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

      专题文章
        CopyRight 2018-2019 实验室设备网 版权所有