#include "string.h" #include "malloc.h" //注意结构体指针需要开辟地址空间 typedef struct Node{ int count; char*name; void (*print)(char*name); int (*add)(int a, int b); }Node, *PNode; void print(char*name){ printf("%s\n", name); } int add(int a, int b){ int ad = a...
}voidmain() {structstudent zhangsan; init(&zhangsan); zhangsan.age=10; zhangsan.isman=1; zhangsan.say(zhangsan.age); }