怎么理解这句Status(*Visit)(TElemType e)
怎么理解这句Status(*Visit)(TElemType e)
[此贴子已经被作者于2017-4-17 07:21编辑过]
#include<stdio.h> #include<stdlib.h> #include<string.h> #define ERROR 0 #define OK 1 int add(int a,int b){ return a+b; } int multiply(int a,int b){ return a*b; } int main() { int (*fun)(int,int); fun=add; printf("%d\n",fun(5,6)); fun=multiply; fun(5,6); printf("%d\n",fun(5,6)); return 0; }