- 博客(3)
- 收藏
- 关注
原创 how to reload .profile in Linux
when you modify .profile in Linux system, you might find the follow commend useful:source ~/.profilethis will run the modified .profile again as if it is loaded when your system is booted up.
2016-06-30 11:13:06 602
原创 vim的设置文档【我的】
colorscheme eveningset fileencodings=utf-8,gb2312,gbk,gb18030set termencoding=utf-8set fileformats=unixset encoding=utf-8set tabstop=4set softtabstop=4set shiftwidth=4set expandtab
2016-06-22 12:20:35 314
原创 Rule of three
在编写class时,有三个元素:copy constructoroperator =destructor如果出现了其中一个,为了代码的健壮性和完整性,应该补上剩下两个元素,尤其是在我们需要deep copying的时候。举个例子来说明养成这个习惯的意义:假设在class中有一个指向heap某区域的指针,我们在destructor中把它delete了,那么如果我们没有定义copy
2016-06-20 16:46:58 808
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人