随笔分类 -  重学c++

摘要:下面代码是一个使用format的例子 ```c++ #include #include #include int main() { double principal{ 1000 }; double rate{ 0.5 }; std::cout 7.2f}\n", principal); std::c 阅读全文
posted @ 2023-08-14 21:58 yuzuki_n 阅读(151) 评论(0) 推荐(0) 编辑
摘要:首先去boost.org下载库文件 然后vs里面包含目录 #include <iostream> using namespace std; #include <boost/multiprecision/cpp_int.hpp> int main() { using namespace boost:: 阅读全文
posted @ 2023-04-14 15:43 yuzuki_n 阅读(52) 评论(0) 推荐(0) 编辑
摘要:#include <iostream> using namespace std; #include <bitset> int main() { bitset<8> priv = 0xff; bitset<8> backup = (1 << 6); bitset<8> admin = (1 << 7) 阅读全文
posted @ 2023-04-14 15:06 yuzuki_n 阅读(13) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示