⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 systems.cpp

📁 Boost provides free peer-reviewed portable C++ source libraries. We emphasize libraries that work
💻 CPP
📖 第 1 页 / 共 5 页
字号:
                  << iml7 << " = " << quantity<foot_length>(iml7) << std::endl                  << std::endl;        std::cout << iml1 << " = " << quantity<yard_length>(iml1) << std::endl                  << iml2 << " = " << quantity<yard_length>(iml2) << std::endl                  << iml3 << " = " << quantity<yard_length>(iml3) << std::endl                  << iml4 << " = " << quantity<yard_length>(iml4) << std::endl                  << iml5 << " = " << quantity<yard_length>(iml5) << std::endl                  << iml6 << " = " << quantity<yard_length>(iml6) << std::endl                  << iml7 << " = " << quantity<yard_length>(iml7) << std::endl                  << std::endl;        std::cout << iml1 << " = " << quantity<furlong_length>(iml1) << std::endl                  << iml2 << " = " << quantity<furlong_length>(iml2) << std::endl                  << iml3 << " = " << quantity<furlong_length>(iml3) << std::endl                  << iml4 << " = " << quantity<furlong_length>(iml4) << std::endl                  << iml5 << " = " << quantity<furlong_length>(iml5) << std::endl                  << iml6 << " = " << quantity<furlong_length>(iml6) << std::endl                  << iml7 << " = " << quantity<furlong_length>(iml7) << std::endl                  << std::endl;        std::cout << iml1 << " = " << quantity<mile_length>(iml1) << std::endl                  << iml2 << " = " << quantity<mile_length>(iml2) << std::endl                  << iml3 << " = " << quantity<mile_length>(iml3) << std::endl                  << iml4 << " = " << quantity<mile_length>(iml4) << std::endl                  << iml5 << " = " << quantity<mile_length>(iml5) << std::endl                  << iml6 << " = " << quantity<mile_length>(iml6) << std::endl                  << iml7 << " = " << quantity<mile_length>(iml7) << std::endl                  << std::endl;        std::cout << iml1 << " = " << quantity<league_length>(iml1) << std::endl                  << iml2 << " = " << quantity<league_length>(iml2) << std::endl                  << iml3 << " = " << quantity<league_length>(iml3) << std::endl                  << iml4 << " = " << quantity<league_length>(iml4) << std::endl                  << iml5 << " = " << quantity<league_length>(iml5) << std::endl                  << iml6 << " = " << quantity<league_length>(iml6) << std::endl                  << iml7 << " = " << quantity<league_length>(iml7) << std::endl                  << std::endl;                          quantity<grain_mass>            imm1(1.0*grains);        quantity<drachm_mass>            imm2(1.0*drachms);        quantity<ounce_mass>            imm3(1.0*ounces);        quantity<pound_mass>            imm4(1.0*pounds);        quantity<stone_mass>            imm5(1.0*stones);        quantity<quarter_mass>            imm6(1.0*quarters);        quantity<hundredweight_mass>    imm7(1.0*hundredweights);        quantity<ton_mass>                imm8(1.0*tons);        std::cout << imm1 << " = " << quantity<si::mass>(imm1) << std::endl                  << imm2 << " = " << quantity<si::mass>(imm2) << std::endl                  << imm3 << " = " << quantity<si::mass>(imm3) << std::endl                  << imm4 << " = " << quantity<si::mass>(imm4) << std::endl                  << imm5 << " = " << quantity<si::mass>(imm5) << std::endl                  << imm6 << " = " << quantity<si::mass>(imm6) << std::endl                  << imm7 << " = " << quantity<si::mass>(imm7) << std::endl                  << imm8 << " = " << quantity<si::mass>(imm8) << std::endl                  << std::endl;                          std::cout << imm8 << "/" << imm1 << " = " << quantity<si::dimensionless>(imm8/imm1) << std::endl                  << imm8 << "/" << imm2 << " = " << quantity<si::dimensionless>(imm8/imm2) << std::endl                  << imm8 << "/" << imm3 << " = " << quantity<si::dimensionless>(imm8/imm3) << std::endl                  << imm8 << "/" << imm4 << " = " << quantity<si::dimensionless>(imm8/imm4) << std::endl                  << imm8 << "/" << imm5 << " = " << quantity<si::dimensionless>(imm8/imm5) << std::endl                  << imm8 << "/" << imm6 << " = " << quantity<si::dimensionless>(imm8/imm6) << std::endl                  << imm8 << "/" << imm7 << " = " << quantity<si::dimensionless>(imm8/imm7) << std::endl                  << std::endl;        std::cout << imm1 << " = " << quantity<grain_mass>(imm1) << std::endl                  << imm2 << " = " << quantity<grain_mass>(imm2) << std::endl                  << imm3 << " = " << quantity<grain_mass>(imm3) << std::endl                  << imm4 << " = " << quantity<grain_mass>(imm4) << std::endl                  << imm5 << " = " << quantity<grain_mass>(imm5) << std::endl                  << imm6 << " = " << quantity<grain_mass>(imm6) << std::endl                  << imm7 << " = " << quantity<grain_mass>(imm7) << std::endl                  << imm8 << " = " << quantity<grain_mass>(imm8) << std::endl                  << std::endl;                          std::cout << imm1 << " = " << quantity<drachm_mass>(imm1) << std::endl                  << imm2 << " = " << quantity<drachm_mass>(imm2) << std::endl                  << imm3 << " = " << quantity<drachm_mass>(imm3) << std::endl                  << imm4 << " = " << quantity<drachm_mass>(imm4) << std::endl                  << imm5 << " = " << quantity<drachm_mass>(imm5) << std::endl                  << imm6 << " = " << quantity<drachm_mass>(imm6) << std::endl                  << imm7 << " = " << quantity<drachm_mass>(imm7) << std::endl                  << imm8 << " = " << quantity<drachm_mass>(imm8) << std::endl                  << std::endl;                          std::cout << imm1 << " = " << quantity<ounce_mass>(imm1) << std::endl                  << imm2 << " = " << quantity<ounce_mass>(imm2) << std::endl                  << imm3 << " = " << quantity<ounce_mass>(imm3) << std::endl                  << imm4 << " = " << quantity<ounce_mass>(imm4) << std::endl                  << imm5 << " = " << quantity<ounce_mass>(imm5) << std::endl                  << imm6 << " = " << quantity<ounce_mass>(imm6) << std::endl                  << imm7 << " = " << quantity<ounce_mass>(imm7) << std::endl                  << imm8 << " = " << quantity<ounce_mass>(imm8) << std::endl                  << std::endl;                          std::cout << imm1 << " = " << quantity<pound_mass>(imm1) << std::endl                  << imm2 << " = " << quantity<pound_mass>(imm2) << std::endl                  << imm3 << " = " << quantity<pound_mass>(imm3) << std::endl                  << imm4 << " = " << quantity<pound_mass>(imm4) << std::endl                  << imm5 << " = " << quantity<pound_mass>(imm5) << std::endl                  << imm6 << " = " << quantity<pound_mass>(imm6) << std::endl                  << imm7 << " = " << quantity<pound_mass>(imm7) << std::endl                  << imm8 << " = " << quantity<pound_mass>(imm8) << std::endl                  << std::endl;                          std::cout << imm1 << " = " << quantity<stone_mass>(imm1) << std::endl                  << imm2 << " = " << quantity<stone_mass>(imm2) << std::endl                  << imm3 << " = " << quantity<stone_mass>(imm3) << std::endl                  << imm4 << " = " << quantity<stone_mass>(imm4) << std::endl                  << imm5 << " = " << quantity<stone_mass>(imm5) << std::endl                  << imm6 << " = " << quantity<stone_mass>(imm6) << std::endl                  << imm7 << " = " << quantity<stone_mass>(imm7) << std::endl                  << imm8 << " = " << quantity<stone_mass>(imm8) << std::endl                  << std::endl;                          std::cout << imm1 << " = " << quantity<quarter_mass>(imm1) << std::endl                  << imm2 << " = " << quantity<quarter_mass>(imm2) << std::endl                  << imm3 << " = " << quantity<quarter_mass>(imm3) << std::endl                  << imm4 << " = " << quantity<quarter_mass>(imm4) << std::endl                  << imm5 << " = " << quantity<quarter_mass>(imm5) << std::endl                  << imm6 << " = " << quantity<quarter_mass>(imm6) << std::endl                  << imm7 << " = " << quantity<quarter_mass>(imm7) << std::endl                  << imm8 << " = " << quantity<quarter_mass>(imm8) << std::endl                  << std::endl;                          std::cout << imm1 << " = " << quantity<hundredweight_mass>(imm1) << std::endl                  << imm2 << " = " << quantity<hundredweight_mass>(imm2) << std::endl                  << imm3 << " = " << quantity<hundredweight_mass>(imm3) << std::endl                  << imm4 << " = " << quantity<hundredweight_mass>(imm4) << std::endl                  << imm5 << " = " << quantity<hundredweight_mass>(imm5) << std::endl                  << imm6 << " = " << quantity<hundredweight_mass>(imm6) << std::endl                  << imm7 << " = " << quantity<hundredweight_mass>(imm7) << std::endl                  << imm8 << " = " << quantity<hundredweight_mass>(imm8) << std::endl                  << std::endl;                          std::cout << imm1 << " = " << quantity<ton_mass>(imm1) << std::endl                  << imm2 << " = " << quantity<ton_mass>(imm2) << std::endl                  << imm3 << " = " << quantity<ton_mass>(imm3) << std::endl                  << imm4 << " = " << quantity<ton_mass>(imm4) << std::endl                  << imm5 << " = " << quantity<ton_mass>(imm5) << std::endl                  << imm6 << " = " << quantity<ton_mass>(imm6) << std::endl                  << imm7 << " = " << quantity<ton_mass>(imm7) << std::endl                  << imm8 << " = " << quantity<ton_mass>(imm8) << std::endl                  << std::endl;                          quantity<fluid_ounce_volume>    imv1(1.0*fluid_ounces);        quantity<gill_volume>            imv2(1.0*gills);        quantity<pint_volume>            imv3(1.0*pints);        quantity<quart_volume>            imv4(1.0*quarts);        quantity<gallon_volume>            imv5(1.0*gallons);                std::cout << imv1 << " = " << quantity<si::volume>(imv1) << std::endl                  << imv2 << " = " << quantity<si::volume>(imv2) << std::endl                  << imv3 << " = " << quantity<si::volume>(imv3) << std::endl                  << imv4 << " = " << quantity<si::volume>(imv4) << std::endl                  << imv5 << " = " << quantity<si::volume>(imv5) << std::endl                  << std::endl;                          std::cout << imv5 << "/" << imv1 << " = " << quantity<si::dimensionless>(imv5/imv1) << std::endl                  << imv5 << "/" << imv2 << " = " << quantity<si::dimensionless>(imv5/imv2) << std::endl                  << imv5 << "/" << imv3 << " = " << quantity<si::dimensionless>(imv5/imv3) << std::endl                  << imv5 << "/" << imv4 << " = " << quantity<si::dimensionless>(imv5/imv4) << std::endl                  << std::endl;        std::cout << imv1 << " = " << quantity<fluid_ounce_volume>(imv1) << std::endl                  << imv2 << " = " << quantity<fluid_ounce_volume>(imv2) << std::endl                  << imv3 << " = " << quantity<fluid_ounce_volume>(imv3) << std::endl                  << imv4 << " = " << quantity<fluid_ounce_volume>(imv4) << std::endl                  << imv5 << " = " << quantity<fluid_ounce_volume>(imv5) << std::endl                  << std::endl;                          std::cout << imv1 << " = " << quantity<gill_volume>(imv1) << std::endl                  << imv2 << " = " << quantity<gill_volume>(imv2) << std::endl                  << imv3 << " = " << quantity<gill_volume>(imv3) << std::endl                  << imv4 << " = " << quantity<gill_volume>(imv4) << std::endl                  << imv5 << " = " << quantity<gill_volume>(imv5) << std::endl                  << std::endl;                          std::cout << imv1 << " = " << quantity<pint_volume>(imv1) << std::endl                  << imv2 << " = " << quantity<pint_volume>(imv2) << std::endl                  << imv3 << " = " << quantity<pint_volume>(imv3) << std::endl                  << imv4 << " = " << quantity<pint_volume>(imv4) << std::endl                  << imv5 << " = " << quantity<pint_volume>(imv5) << std::endl                  << std::endl;                          std::cout << imv1 << " = " << quantity<quart_volume>(imv1) << std::endl                  << imv2 << " = " << quantity<quart_volume>(imv2) << std::endl                  << imv3 << " = " << quantity<quart_volume>(imv3) << std::endl                  << imv4 << " = " << quantity<quart_volume>(imv4) << std::endl                  << imv5 << " = " << quantity<quart_volume>(imv5) << std::endl                  << std::endl;                          std::cout << imv1 << " = " << quantity<gallon_volume>(imv1) << std::endl                  << imv2 << " = " << quantity<gallon_volume>(imv2) << std::endl                  << imv3 << " = " << quantity<gallon_volume>(imv3) << std::endl                  << imv4 << " = " << quantity<gallon_volume>(imv4) << std::endl                  << imv5 << " = " << quantity<gallon_volume>(imv5) << std::endl                  << std::endl;    }        {        using namespace boost::units::metric;                std::cout << "Testing metric base units..." << std::endl;                quantity<fermi_length>            ml1(1.0*fermis);        quantity<angstrom_length>        ml2(1.0*angstroms);        quantity<micron_length>            ml3(1.0*microns);        quantity<nautical_mile_length>    ml4(1.0*nautical_miles);            std::cout << ml1 << " = " << quantity<si::length>(ml1) << std::endl                  << ml2 << " = " << quantity<si::length>(ml2) << std::endl                  << ml3 << " = " << quantity<si::length>(ml3) << std::endl                  << ml4 << " = " << quantity<si::length>(ml4) << std::endl                  << std::endl;        std::cout << ml4 << "/" << ml1 << " = " << quantity<si::dimensionless>(ml4/ml1) << std::endl                  << ml4 << "/" << ml2 << " = " << quantity<si::dimensionless>(ml4/ml2) << std::endl                  << ml4 << "/" << ml3 << " = " << quantity<si::dimensionless>(ml4/ml3) << std::endl

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -