typedef int(FUNC1)(int in);

#include <stdio.h>   
int inc(int a)   
{
return(++a);
 }  
int multi(int*a,int*b,int*c)   
{  
return(*c=*a**b);
}  

typedef int(FUNC1)(int in);
  
typedef int(FUNC2) (int*,int*,int*);
  
void show(FUNC2 fun,int arg1, int*arg2)  
{    
   FUNC1 p=&inc;   
  int temp =p(arg1);   
  fun(&temp,&arg1, arg2);   
  printf("%dn",*arg2);   
}

posted @ 2013-03-06 17:45  枫部落  阅读(2537)  评论(0编辑  收藏  举报
点击这里给我发消息