12 2019 档案
摘要:C++11 让程序更简洁、更优雅 可调用对象 1. 是一个函数指针 2. 是一个具有operator()成员函数的类对象(仿函数) 3. 是一个可被装换为函数指针的类对象 4. 是一个类的成员(函数)指针 std::function std::function是可调用对象的包装器,可以容纳除了类成员
阅读全文
摘要:``` sudo apt-get install xserver-xorg-lts-utopic sudo dpkg-reconfigure xserver-xorg-lts-utopic reboot ```
阅读全文
摘要:``` #include #include #include #include #include #include using namespace boost; using namespace boost::multi_index; using namespace std; struct Employee{ int id; string name; int age; Employee():id(0
阅读全文
摘要:最近学习内存分布,通过gdb调试发现一些问题,栈空间变量地址应该是从高往低分布的,但是调试发现地址虽然是从高往低分布,但是变量地址的顺序是乱的,请教同事他说可能是gcc/g++默认启用了堆栈保护,关于堆栈保护可以查看这篇文章 默认编译 关闭堆栈保护编译
阅读全文

浙公网安备 33010602011771号