Ниже мой код.
struct movie {
char movie_name[30];
float score;
};
typedef struct movie ITEM;
typedef struct node {
ITEM item;
struct node* next;
}NODE;
typedef struct list {
NODE* head;
}List;
void read_file(List *p_head)
{...
List new_movie = (List)malloc(sizeof(struct list));
...
}
Я хочу выделить тип памяти 'List'.
Но я не могу выделить.
Что не так?