06 2022 档案

摘要:https://mp.weixin.qq.com/s/yJeZdSLnYBiOFRVdndmNwg https://zhuanlan.zhihu.com/p/338227166 https://www.runoob.com/w3cnote/bit-operation.html 阅读全文
posted @ 2022-06-27 19:44 OXYGEN1 阅读(23) 评论(0) 推荐(0) 编辑
摘要:两个独占式智能指针unique_ptr互指会有什么问题?看如下代码: #include <iostream> #include <memory> using namespace std; class B; class A { public: unique_ptr<B> pb_; ~A() { cou 阅读全文
posted @ 2022-06-11 16:22 OXYGEN1 阅读(36) 评论(0) 推荐(0) 编辑
摘要:https://zhuanlan.zhihu.com/p/64138532 https://my.oschina.net/alchemystar/blog/3008840 阅读全文
posted @ 2022-06-09 10:16 OXYGEN1 阅读(18) 评论(0) 推荐(0) 编辑
摘要:#include <stdio.h> union { short value; // 2字节 char bytes[sizeof(short)]; // char[2] } test; int main(int argc, const char * argv[]) { test.value = 0x 阅读全文
posted @ 2022-06-05 22:43 OXYGEN1 阅读(20) 评论(0) 推荐(0) 编辑
摘要:#include <stdio.h> #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> int main(int argc,char *argv[]) { int srcfd = o 阅读全文
posted @ 2022-06-02 17:37 OXYGEN1 阅读(52) 评论(0) 推荐(0) 编辑

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