Cpp クラス メンバ関数ポインタ 新しいページはコチラ
提供: yonewiki
(→クラス メンバ関数ポインタ) |
(→クラス メンバ関数ポインタ) |
||
31行: | 31行: | ||
pfuncExample1 = &CFunctionPointer001::example_function1;//★2.変数に関数のアドレスを代入 | pfuncExample1 = &CFunctionPointer001::example_function1;//★2.変数に関数のアドレスを代入 | ||
− | //pfuncExample1 = example_function1;// | + | //pfuncExample1 = example_function1;//ダメな例:これだとダメ |
(this->*pfuncExample1)(100,200);//★3.呼び出し | (this->*pfuncExample1)(100,200);//★3.呼び出し |