我们先用下面的结构来描述一个对象: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15  typedef struct _ClassType   {   char* name; /*对象名,唯一*/   int object_size;/*对象大小,创建实列时分配内存要用到*/   int class_size; /*全部虚函数大小,如sizeof(CObjectClass)*/   void* vclass; /*虚函数指针*/   void (*Init...阅读更多