星期一, 1月 11, 2010

C/C++筆記

星期六, 1月 09, 2010

pointer with const


const int x; // constant int
x = 2; // illegal - can't modify x

const int* pX; // changeable pointer to constant int
*pX = 3; // illegal - can't use pX to modify an int
pX = &someOtherIntVar; // legal - pX can point somewhere else

int* const pY; // constant pointer to changeable int
*pY = 4; // legal - can use pY to modify an int
pY = &someOtherIntVar; // illegal - can't make pY point anywhere else

const int* const pZ; // const pointer to const int
*pZ = 5; // illegal - can't use pZ to modify an int

pZ = &someOtherIntVar; // illegal - can't make pZ point anywhere else

Const Correctness in C++


function table on C

C語言中function table要怎麼寫?

星期四, 1月 07, 2010

bulk-loader

BulkLoader是一個不錯且使用簡單的開源加載類,其能實現對不同類型文件的加載進行管理。

星期一, 1月 04, 2010

圖片點陣化效果

用 BitmapData 配合 Matrix 的 scale 繪製小 size 的點陣圖;
再把 attach 這張圖的 MovieClip 給拉大。

milkmidi老師的Demo

引用自
馬克.凡 の ActionScript 學習筆記

星期日, 1月 03, 2010

鏈結串列 Linked list

鏈結串列之搜尋

1180: 呼叫可能未定義的方法 addFrameScript。

在寫AS3的發佈後有時會跳出1180: 呼叫可能未定義的方法 addFrameScript。