Author Archive
Singleton Pattern
四月.28, 2010 Posted in RSS
Singleton Pattern帶來的是保證一個class只有一個實體,無法產生第二個第三個… 使用這種模式的概念是系統中永遠只會唯一存在,如OS kernal、program core或hardward controller等。C++實作如下:
Comments Off
:C/C++, Design Pattern, Programming
more...
陀飛輪
四月.21, 2010 Posted in RSS
主誯:陳奕迅
作曲:Vincent Chow 填詞:黃偉文
編曲:Gary Tong 監製:Alvin Leong
過去十八歲 沒戴錶 不過有時間
夠我 沒有後顧 野性貪玩
霎眼廿七歲 時日無多 ...
Policy-Based Class Design
四月.17, 2010 Posted in RSS
在C++新增template功能的初期,大家普遍認為template只是為物件導向設計得到更好的重用性,不單單將重複使用的程式碼設計成物件類別(class),連類別也重用,經由編譯器幫programmer把不同型別...
Invoke pure virtual function
十二月.11, 2009 Posted in RSS
沒錯 你沒看錯
這篇的標題是呼叫純虛擬函式
一個沒有實作的純虛擬函式是有可能被呼叫起來的
class A {
public:
virtual void f(void) = 0;
};
class B : public A {
...
C/C++ with MySQL
七月.28, 2009 Posted in RSS
最近一直找一個bug 找很久都找不出來
狀況是這樣子
在一台linux上裝上 MySQL 5.0, Apache 2.0, django 1.0, openssl 5.5.2
建立一台有網頁 有cgi 有ssl的平台
之後複製另一台成master an...
The Show
七月.25, 2009 Posted in RSS
http://www.youtube.com/watch?v=hnN30rs5NkQ十分值得聽的歌 澳洲的創作女歌生 lenka
The Show
I’m just a little bit
caught in the middle
Life is a maze
and love is a riddle
I don’t know where...
you and i both
十二月.09, 2008 Posted in RSS
演唱:jason mraz
Was it you who spoke the words that things would happen but not to me?
All things are gonna happen naturally
Oh, taking your advice and I’m looking on the bright side
And balancing the whole thing.
...
Looking for something?
Use the form below to search the site:
Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!























