研究了一下,总算勉强能够融会贯通了c写成OOP还蛮有乐趣的编译环境:Xcode3.2.3+gcc4.2 代码如下:#ifndef OBJECT_H#define OBJECT_Htypedef void (*Execute)(struct Object *a_This);typedef struct Object* (*Allocate)();typedef struct _Object_Vtable{ char *name; Execute exe;}Object_Vtable;typedef