C 関数ポインタ 新しいページはコチラ
提供: yonewiki
(→関数ポインタ) |
(→関数ポインタ) |
||
33行: | 33行: | ||
具体的には、以下のような記述になります。 | 具体的には、以下のような記述になります。 | ||
<syntaxhighlight lang="cpp" line start="1"> | <syntaxhighlight lang="cpp" line start="1"> | ||
+ | #include "stdafx.h" | ||
+ | |||
void example_function1(int n,int m){ | void example_function1(int n,int m){ | ||
printf(”example_function1 %d %d”,n, m); | printf(”example_function1 %d %d”,n, m); | ||
}; | }; | ||
+ | |||
int _tmain(int argc, _TCHAR* argv[]) | int _tmain(int argc, _TCHAR* argv[]) | ||
{ | { |