Author Archive
Bizarre Love Triangle
十月.27, 2008 Posted in RSS
Every time I think of you
I get a shot right through into a bolt of blue
It’s no problem of mine but it’s a problem I find
Living a life that I can’t leave behind
There’s no sense in telling me
The...
Symbian S60 5th Edition
十月.17, 2008 Posted in RSS
Symbian的第五版在10/3 released
這版中主要加強的部份是多媒體、網路、可靠度和觸控介面
第五版中優化攝影機的codec(宽螢幕影相儲存能力)。使用者設定參數來調控照片的balance, color an...
default constructor
十月.01, 2008 Posted in RSS
C++中預設建構子就是沒有參數的建構子
一般大多數人都有以下錯誤觀念:
1.class沒有定義預設建構子 compiler就會自動產生一個
2.compiler產生出來的預設建構子中 會為member data...
tricky skill (1) in C
九月.25, 2008 Posted in RSS
struct rumble {
char c[1];
};
struct rumble *p = (struct rumble*) malloc(sizeof(struct rumble) + 5);
在C裡 有一個技巧就是在struct最後宣告一個單一元素的陣列
於是在malloc時就能擁有可變...
預設值和多型的陷阱
九月.24, 2008 Posted in RSS
class A {
virtual void f(int i = 10);
};
class B: public A {
void f(int i = 20);
};
A* a = B();
a->f();
這題多型很簡單 a->f()會呼叫class B裡的f()
但問題是如果印i出來...
last order
九月.10, 2008 Posted in RSS
歌名:last order
演唱:陳奕
作曲:Eric Kwok, 編曲:Eric Kwok
監製:Eric Kwok, 填詞:黃偉文
沒關係 真的沒關係 我也許 早就該回去
再一杯 我告訴自己 到此為止 乾了不...























