原创 Segmentation fault(bus error or access violation)的原因

http://en.wikipedia.org/wiki/Segmentation_fault A segmentation fault occurs when a program attempts to access a memor

原创 side effect

http://www.learncpp.com/cpp-tutorial/33-incrementdecrement-operators-and-side-effects/ A side effect is a result of an

原创 尋找出現頻率超過一半的數

http://blog.csdn.net/johnny710vip/article/details/6930179 假如每次刪除兩個不同的數(不管包括不包括最高頻數),那麼,在剩下的數字裏,原最高頻數出現的頻率一樣超過了50%,不斷重複

原创 同步/異步與阻塞/非阻塞的區別

http://www.cppblog.com/converse/archive/2009/05/13/82879.html 消息通知和處理消息 點贊 收藏 分享 文章舉報 so

原创 判斷是否有環和查找入環節點

http://www.cnblogs.com/zemliu/archive/2012/08/15/2640849.html

原创 二叉樹的寬度和深度

http://blog.csdn.net/conanswp/article/details/19831129

原创 C++中的返回值優化(RVO)

http://www.programlife.net/cpp-return-value-optimization.html

原创 opencart安裝

1. 備份 /var/www/html爲html-bak 2. 將本地html scp到/var/www/html 3. 刪除image目錄,並且將該目錄從html-bak處拷貝過來 4. 拷貝html-bak/config.php 到當

原创 #pragma once與 #ifndef的區別

http://www.cppblog.com/szhoftuncun/archive/2012/03/13/35356.html

原创 Get bit and Set bit

bool GetBit(int n, int index) {     return (n&(1<<index)>0); } int SetBit(int n, int index, bool b) {     if (b)    {

原创 Howto set maximum user processes on AIX

http://space.itpub.net/38267/viewspace-711745 su - root smit Goto 'Systems environments' Goto 'Change/Show Characteris

原创 $,$#及$.的區別

$('XXX')//獲得標籤名爲'xxx'的html標籤$('#XXX')//獲得id='xxx'的html標籤$('.XXX')//獲得className='xxx'的html標籤

原创 map VS. hasp_map in C++

http://stackoverflow.com/questions/2189189/map-vs-hash-map-in-c hash_map and unordered_map are generally implemented w

原创 opencart mail服務器的配置

首先,在後臺中,網店設置中的,編輯項目-》電子郵件的內容,要與郵件協議-》SMTP用戶一致。 郵件協議中,所填的內容,見opencart的配置(例如:ssl://smtp.exmail.qq.com, 465 port)

原创 opencart相關

在Javascript中得到php數組的內容: var pickup_list = JSON.parse('<?php echo json_encode($pickup_list); ?>');積分:訂單配置---》獎勵積分設置-》網店設