原创 How a C++ compiler implements exception handlin

Introduction One of the revolutionary features of C++ over traditional languages is its support for exception handling.

原创 JSP入門

  JSP標籤(JSP Tag Library)技術是在JSP1.1版本中才出現的,它支持用戶在JSP文件中使用自定義的標籤。通過JSP標籤可以進一步使代碼更簡潔,逐漸把需要使用Java類才能處理的邏輯分離出來,放到JSP標籤中,這樣也可

原创 http://www.ibm.com/developerworks/cn/linux/l-dynamic-libraries/index.html

http://www.ibm.com/developerworks/cn/linux/l-dynamic-libraries/index.html  

原创 How to implement Polymorphism in C

I think the article on this website is a good example. http://www.codeproject.com/KB/recipes/PolymorphismC.aspx  

原创 可移植C/C++設計

1.分層設計,隔離平臺相關的代碼。就像可測試性一樣,可移植性也要從設計抓起。一般來說,最上層和最下層都不具有良好的可移植性。最上層是GUI,大多數GUI都不是跨平臺的,如Win32 SDK和MFC。最下層是操作系統API,大多部分操作系統

原创 如何提高數據庫查詢速度 (收藏+體會)

  1、用程序中,保證在實現功能的基礎上,儘量減少對數據庫的訪問次數;通過搜索參數,儘量減少對錶的訪問行數,最小化結果集,從而減輕網絡負擔;能夠分開的操作儘量分開處理,提高每次的響應速度;在數據窗口使用

原创 Analysis on efficiency of pre-increment and post-increment

Let's have a look from the fundamental types to complex type.       int size = 0;     int x = 0;       size+

原创 面試官最愛問的問題背後真相

1.請介紹一下你自己。   這是外企常問的問題。一般人回答這個問題過於平常,只說姓名、年齡、愛好、工作經驗,這些在簡歷上都有,其實,外企最希望知道的是求職者能否勝任工作,包括:最強的技能、最深入研究的知識領

原创 About the thread safety on STL

http://msdn.microsoft.com/en-us/library/c9ceah3b%28v=VS.80%29.aspx  

原创 項目經理眼中優秀開發人員的標準

   作爲項目經理,我希望我們項目的開發人員做到以下幾點:1、主動性        在項目中積極思考,主動提出自己的意見和看法。        遇到問題主動尋求相關人員協助,主動溝通。 2、Bug修復及時 

原创 Some weird but useful C code

1.Determine the struct/class address based on it member address #define list_entry(ptr, type, member) / ((type *)((char

原创 TCP 連接斷連問題剖析

http://www.ibm.com/developerworks/cn/aix/library/0808_zhengyong_tcp/index.html    

原创 How to utilize the application's spare time?

 A window application will enter the idle time if there is no message waiting for processing. So how to utilize this in