原创 單鏈表反轉的遞歸方法

node *reverse(node *head, node*pre)      // 逆轉單鏈表函數。這是筆試時需要寫的最主要函數 {       node *p=head->next;       head->next = pre;

原创 VS2008如何在release下做debug

http://blog.csdn.net/iuhsihsow/article/details/8511089

原创 linux進程創建:fork、vfork和clone聯繫與區別

http://blog.sina.com.cn/s/blog_7673d4a5010103x7.html 另外,延伸:殭屍進程的產生原因,以及如何避免。

原创 GDB 調試子進程 及STL

http://tianhailong2002.blog.163.com/blog/static/109610567200952311629182/ set follow-fork-mode child命令設置gdb在fork之後跟蹤子進

原创 關於Move constructor

Move constructor : 1. 包括:Move copy constructor和Move assignment operator 2. Move constructor,主要是爲了消除臨時對象(函數返回值,函數參數) 3.

原创 關於auto_prt

auto_prt is NOT  copy-constructible and  assignable.。 所以要特別注意: 1. 不能用於STL containers: http://www.devx.com/tips/Tip/1360

原创 關於STL容器線程安全思考

http://www.cnblogs.com/juncheng/articles/1600728.html STL容器(和大多數廠商的願望)裏對多線程支持的黃金規則已經由SGI定義,並且在它們的STL網站[21]上發佈。大體上說,你能從

原创 template VS Inheritance

It depends on whether the coupling can be be decided at compile time or must be delayed until runtime. If the coupling

原创 GetCurrentDirectory()和GetModuleFileName()

http://blog.163.com/copy00@126/blog/static/1511499792010329101614722/ 1. GetCurrentDirectory只是返回當前進程的當前目錄,而並不是進程的鏡像文件(.

原创 關於assignment operator

1. 自賦值的情況: if (this == &rhs) 2. 返回值爲對象的reference: 爲了連等的情況。 (a=b)=c 3. exceptional safe 的assignment operator:    A. http