Recent Entries
俺的プログラミングメモ
Archives
2006年04月
2006年03月
2006年02月
2006年01月
2005年12月
2005年11月
2005年10月
2005年09月
2005年08月
2005年05月
2005年04月
2005年03月
2005年02月
2004年12月
2004年11月
2004年09月
2004年08月
2004年07月
2004年06月
2004年05月
2004年04月
2004年03月
2004年02月
2004年01月
Search


Links


Syndicate This Blog!







Powered by
Movable Type 3.2-ja-2

2006年04月20日

俺的プログラミングメモ

const
int test::getHoge() const
{ ・・・・ }
testクラスのメンバ変数が変更できなくなる

const int* pArray;
pArrayの指している中身を変更できなくなる

int* const pArray;
pArrayの指しているアドレスの書き換え禁止(中身は変更できる)

const int* const pArray;
全て変更不可

#define HOGE{ ・・・ }
スコープは{ }の中だけとなる

class Hoge
{ int i; };

Hoge::Test(int i)
{ this-> i = i; }
左辺はメンバ変数、右辺は引数になる。
thisで明示的に示している。

virtual

デバッガ
ブレークポイントを右クリックでプロパティ見れて、ループのヒットカウントなどや条件を設定できる。

ショートカット
F9:ブレークポイント
F10:ステップ実行

メモリデバッグ
Ctrl + Alt + M
適当な数字押すとメモリの中身が見られる

Posted by Mojya at 00:52 | TrackBack (0)