
19 May
2010
19 May
'10
7:15 p.m.
AMDG Terry Golubiewski wrote:
Warning: untested code
typedef quanttyus::foot_base_unit::unit_type Length; Length x(2.0 * m);
Ok. That makes Length represent "feet" But I want Length to remain represented as an si::length, but input "ft" into it and convert to "ft" to print.
// static const si::length ft = ???; typedef quantitysi::length Length; Length x = 3.0 * ft; cout << "x=" << convert_to_ft(x) << endl;
typedef quantityus::foot_base_unit::unit_type convert_to_ft; In Christ, Steven Watanabe