boost::units::quantity
boost::units::quantity
std::cout << "radian = " << theta << std::endl;
std::cout << "degree = " << deg << std::endl;
std::cout << std::endl;
std::cout << "conversion " << std::endl;
std::cout << "3.14159 radian = " << boost::units::quantity
std::cout << "180 degree = " << boost::units::quantity
出力は
radian = 3.14159 rad
degree = 180 deg
conversion
3.14159 radian = 180 deg
180 degree = 3.14159 rad
しかしコンパイルに時間かかるな。
0 件のコメント:
コメントを投稿