01 #include "stdafx.h"
02
03 void fun(int x, int y){ printf("Hello World!/n"); }
04 void fun2(int x, int y){ printf("Hello World!/n"); }
05
06 typedef void (*pDevCallBack)(int, int);
07
08 int main(int argc, char* argv[])
09 {
10 printf("Hello World!/n");
11
12 pDevCallBack CallBcck;
13 CallBcck = fun;
14 CallBcck(12, 12);
15 CallBcck = fun2;
16 CallBcck(12, 12);
17
18 void (*pX)(int, int);
19 pX = fun;
20 pX(12, 12);
21 pX = fun2;
22 pX(12, 12);
23
24 // ????????????????++?--??
25
26 int n = 20;
27 //int const * a = &n;
28 const int * a =&n;
29 // a++;
30
31 int i = 10;
32 int * const b = &i;
33 *b = 2;
34
35 return 0;
36 }
37