标签:io c ef size r type return 函数 print
#include <stdio.h>
#include <stdlib.h>
typedef struct DataNode
{
int (*handle)();
}tDataNode;
int print()
{
printf("Hello World!\n");
return 0;
}
int main()
{
int a = 0;
tDataNode * pData = NULL;
pData= (tDataNode *) malloc (sizeof(tDataNode));
pData->handle = print;
pData->handle();
return 0;
}
标签:io c ef size r type return 函数 print
原文地址:http://www.cnblogs.com/on-the-way/p/3986304.html