06 2022 档案
摘要:https://mp.weixin.qq.com/s/yJeZdSLnYBiOFRVdndmNwg https://zhuanlan.zhihu.com/p/338227166 https://www.runoob.com/w3cnote/bit-operation.html
阅读全文
摘要:两个独占式智能指针unique_ptr互指会有什么问题?看如下代码: #include <iostream> #include <memory> using namespace std; class B; class A { public: unique_ptr<B> pb_; ~A() { cou
阅读全文
摘要:https://zhuanlan.zhihu.com/p/64138532 https://my.oschina.net/alchemystar/blog/3008840
阅读全文
摘要:#include <stdio.h> union { short value; // 2字节 char bytes[sizeof(short)]; // char[2] } test; int main(int argc, const char * argv[]) { test.value = 0x
阅读全文
摘要:#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
阅读全文