星期六, 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++
星期四, 1月 07, 2010
星期一, 1月 04, 2010
圖片點陣化效果
用 BitmapData 配合 Matrix 的 scale 繪製小 size 的點陣圖;
再把 attach 這張圖的 MovieClip 給拉大。
milkmidi老師的Demo
引用自
馬克.凡 の ActionScript 學習筆記
再把 attach 這張圖的 MovieClip 給拉大。
milkmidi老師的Demo
引用自
馬克.凡 の ActionScript 學習筆記
星期日, 1月 03, 2010
訂閱:
文章 (Atom)