好文備份
__attribute__((constructor(PRIORITY)))
__attribute__((destructor(PRIORITY)))

阿肯 發表在 痞客邦 留言(0) 人氣()

Singleton
好文轉貼
 
原文
http://stackoverflow.com/questions/1008019/c-singleton-design-pattern

阿肯 發表在 痞客邦 留言(0) 人氣()

http://stackoverflow.com/questions/201101/how-to-initialize-an-array-in-c
If your compiler is GCC you can use following syntax:
int array[1024]={[0...1023]=5};

阿肯 發表在 痞客邦 留言(0) 人氣()

copy from 
http://stackoverflow.com/questions/3553296/c-sizeof-single-struct-member
 
 

阿肯 發表在 痞客邦 留言(0) 人氣()

http://godspeedlee.myweb.hinet.net/trick.html
 Hacker's Delight
http://www.hackersdelight.org/

阿肯 發表在 痞客邦 留言(0) 人氣()

http://twpug.net/docs/ccfaq/node77.html
 
http://good-ed.blogspot.tw/2011/02/char-foo8.html
 

阿肯 發表在 痞客邦 留言(0) 人氣()

http://publib.boulder.ibm.com/infocenter/iseries/v6r1m0/index.jsp?topic=/rzab6/poll.htm
 
http://beej.us/guide/bgnet/output/html/singlepage/bgnet.html#blocking

阿肯 發表在 痞客邦 留言(0) 人氣()

//========== debug ==================
引用及備分自以下網址
http://www.jeffhung.net/blog/articles/jeffhung/1013/
 

阿肯 發表在 痞客邦 留言(0) 人氣()

出處在下面的網址, 寫的太好 我備分而已
位結構
http://hi.baidu.com/dirac/blog/item/daf8980e62ba01e437d12245.html
C/C++中的struct位结构详解

阿肯 發表在 痞客邦 留言(0) 人氣()

if ... else的簡寫如下

variable  = 
(condition) ? statment1 : statment2

阿肯 發表在 痞客邦 留言(0) 人氣()

class CTest{
    std::ostream debug_message;
    explicit CTest():debug_message( cout.rdbuf() ){} ;
   ~CTest(){};

阿肯 發表在 痞客邦 留言(0) 人氣()


原文出處
http://blog.xuite.net/kamory0931/fightdreamer/52223417-%E7%B5%90%E6%A7%8B%E7%9A%84%E5%B0%8D%E9%BD%8A(Struct+Member+Alignment)
 
結構的對齊(Struct Member Alignment)

阿肯 發表在 痞客邦 留言(0) 人氣()

1 2 3
Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。