typedef struct inheritance in C

前端 未结 0 730
無奈伤痛
無奈伤痛 2021-01-14 06:30

Let\'s say I want to create two sub-types of a type in C. For example:

typedef struct Car {
    char *make;
} Car;

typedef struct Book {
    char *title; 
           


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题