example
a+=b    a=a+b
a|=b     a=(a|b) bit or 運算

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

printf,strcpy,strcat
字串長度的計算=字的個數+1 (for "\0", 判斷終點) 
snprintf,printf

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

sudo yum install gsl gsl-devel  
// 注意 gsl : gives header; gsl-devel:  gives sourse code , 所以兩個都要裝!

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

有時候用malloc()來給記憶體會出現bus error
改成calloc() 就沒問題了

more details

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

不錯的學習web
阿瑟 C++教學文章庫(概念很清楚)
NKNU 基本的東西

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

OPTION in command line
ex: g++ -W test.c -o test
 
-W   :Print extra warning messages

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

/* How to use * and & */
int *b , a = 6, aa[a];// b is IP, a is value ,aa[a] is int array with size a
b = &a; //b=: the IP of a; '&a':IP of a. [*b=values, b=IP, a=values, &a=IP]

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

1
Blog Stats
⚠️

成人內容提醒

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

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