随笔分类 - 重学c++
摘要:下面代码是一个使用format的例子 ```c++ #include #include #include int main() { double principal{ 1000 }; double rate{ 0.5 }; std::cout 7.2f}\n", principal); std::c
阅读全文
摘要:首先去boost.org下载库文件 然后vs里面包含目录 #include <iostream> using namespace std; #include <boost/multiprecision/cpp_int.hpp> int main() { using namespace boost::
阅读全文
摘要:#include <iostream> using namespace std; #include <bitset> int main() { bitset<8> priv = 0xff; bitset<8> backup = (1 << 6); bitset<8> admin = (1 << 7)
阅读全文