As the title says, I have this code:
typedef struct Book{
int id;
char title[256];
char summ
The other answers are all correct and useful, but maybe longer that necessary. Do this:
typedef struct Book Book;
typedef struct Books Books;
typedef struct Author Author;
struct Book {
... as you wish ...
};
struct Author {
... as you wish ...
};
struct Books {
... as you wish ...
};
You can define the your struct
's in any order provided they only contain pointers to other struct
's.