![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c++
mingdeblog
这个作者很懒,什么都没留下…
展开
-
gdb调试经验小结
gdb调试经验:有些语句不宜设置断点, 如果用gdb调试, 程序总是在某个断点处死掉, 则应当考虑删除该断点.善于运用 n 命令, 尤其在调试 for 循环时. (用法: n 10)s - Runs the next line of the programs N - Runs the next N lines of the programn - Like s, but it does ...原创 2019-10-14 10:58:24 · 174 阅读 · 0 评论 -
c++ multiple definitions of
注意不要将类的 static 变量的初始化放在.hpp文件中,这样可能会导致 multiple definition错误. 因为这个头文件很可能被多个文件included.原创 2019-04-25 16:03:22 · 265 阅读 · 0 评论 -
用screen命令镜像服务器终端到本地终端(ubuntu to ubuntu)
本地电脑用 ssh server@ip 命令登陆到服务器,然后在服务器 terminal 执行screen -S foo然后在本地电脑执行screen -x foo就可以将服务器的终端镜像到本地电脑。(上面的foo可以替换为你想要的session名字)...原创 2019-05-24 21:21:39 · 329 阅读 · 0 评论