C11Units:C++11 中的单元

时间:2021-07-08 19:25:28
【文件属性】:
文件名称:C11Units:C++11 中的单元
文件大小:9KB
文件格式:ZIP
更新时间:2021-07-08 19:25:28
C++ C11单位 C11Units 是三个在 C++ 中实现单元的 C++11 类的集合。 main.cpp 显示了一个示例。 添加新的 Units 非常简单:只需查看 C11Units.h / C11Units.cpp 的底部 例子: # include < C11Units> int main () { auto a = 12_N * ( 1 .2_km + 12_m) / 70_min / ( 0 .5_m^ 2 ); std::cout << a << std::endl; // / 6.92571 kg / s^3 // / You can do all kinds of arithmetic operations // / (+, -, *, /, nth-power, nth-root; n mu
【文件预览】:
C11Units-master
----main.cpp(2KB)
----LICENSE(1KB)
----README.md(2KB)
----C11Units.h(31KB)
----C11Units.cpp(85KB)

网友评论