linux_tips linux for linux tips 格式化环境变量 1echo $LD_LIBRARY_PATH|awk -F":" '{for(i=1;i<=NF;i++)print $i}' 清空共享内存 1ipcs|awk '{print $1}'|xargs -I {} su 2021-11-01 linux
C++类和对象的内存布局 用g++查看内存布局的方法: g++ 版本>8.0:g++ -fdump-lang-class vptr.cpp g++ 版本<8.0:g++ -fdump-class-hierarchy vptr.cpp 参考:https://blog.csdn.net/Ineedapassward/article/details/118417116 类的内存布局 参考:https://bl 2021-11-01 C++
error_non_const_lvalue error:cannot bind non-const lvalue reference of type ‘xxx&‘ to an rvalue of type ‘xxx‘ 非常量左值引用不能赋给右值 1234567891011121314151617181920212223class Base{public: Base(){ cout<< 2021-10-31 C++
缺少模板参数列表 在这里插入图片描述 12345678910111213141516171819202122232425#include <iostream>template <typename T>class vector{private: /* data */public: vector(/* args */); ~ vector(); voi 2021-10-28 C++