これはlinkedlistsこのエラーを修正するにはどうすればよいですか?警告:関数の暗黙的な宣言 'MAIN_MENU'
typedef struct node
{
char name[61];
int month; int day;
int year;
struct node *next;
}node;
を利用し、B-日リマインダーコードで、これはこれはリストのコードを作成
list *create_list(list *plist)
{
plist->head = NULL;
plist->tail = NULL;
return plist;
}
あるリスト
typedef struct list
{
node *head;
node *tail;
}list;
です
これは、作成したノードをリストに挿入します。
このは、これはメインメニュー
void main_menu(list* List)
{
int x;
printf("Welcome to myCalendar version 1.0.0\n");
printf("Please input the number that you wish to do:\n");
printf("[1] Add Birthday Reminder\n");
printf("[2] Delete Birthday Reminder\n");
printf("[3] View Calendar\n");
printf("[4] Quit\n");
scanf("%d", &x);
getchar();
switch (x)
{
case 1:
add_birthday(List);
break;
case 2:
delete_reminder(List);
break;
case 3:
view_calendar(List);
break;
case 4:
free(List);
break;
}
}
これがメイン
int main(void)
{
list* List = (list*) malloc(sizeof(list));
List = create_list(List);
main_menu(List);
return 0;
}
これらは警告TEST.Cである:290:警告:関数の暗黙の宣言 'MAIN_MENU' test.cの:最上位レベル: test.cの:357:警告: 'MAIN_MENU' test.cのための競合タイプ:290:note:前回の 'main_menu'の暗黙の宣言は – user123456098