HansanF
  • Home
  • Archives
  • Categories
  • Tags
  • About
  •   
  •   

linux_tips

linux for linux tips 格式化环境变量 1echo $LD_LIBRARY_PATH|awk -F":" &#x27;&#123;for(i=1;i<=NF;i++)print $i&#125;&#x27; 清空共享内存 1ipcs|awk &#x27;&#123;print $1&#125;&#x27;|xargs -I &#123;&#125; 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&#123;public: Base()&#123; cout<&lt

2021-10-31
C++

缺少模板参数列表

在这里插入图片描述 12345678910111213141516171819202122232425#include <iostream>template <typename T>class vector&#123;private: /* data */public: vector(/* args */); ~ vector(); voi

2021-10-28
C++
1…678

Search

Hexo Fluid
总访问量 次 总访客数 人