here is a snippet of my code:
typedef struct node
{
char name[61];
int month;
int day;
int year;
struct node *next;
}node;
typedef struct list
{
node *head;
node *tail;
}list;
void main_menu(list* List)
{
//some code
}
int main(void)
{
main_menu(list* List); //Here is the error*****
return 0;
}
Help would be very appreciated :D
Update:but i need the list initialization for these codes
list *create_list(node *head)
{
some code//
}
list *insert_list(list *plist, node *pnode, node *new_node)
{
// some code
}
Copyright © 2024 1QUIZZ.COM - All rights reserved.
Answers & Comments
"List" is not defined, only "list".
change your struct to read:
typedef struct list
{
node *head;
node *tail;
}List;