0

i get a undefined reference to get_menu_choice error message but i dont know why ?

int get_menu_choice( void); 

int main() 
{ 
//code// 


while (choice != QUIT)
	{
		choice = get_menu_choice();
		
		if (choice == 1)
                //code//
}
else
                if (choice == 2)
                //code//
}
              if (choice == 3){ 
		puts("you chose to quit\n");
		return 0;
}
int get_menu_choice( void )
	{
	int select = 0; 
	do
		{
		printf("\n");

		printf("\n1 - open file\n");
		printf("\n2 - add a file\n");
		printf("\n3 - Quit");
		printf("\n");
		printf("\nEnter a selection: " );
		scanf("%d", &select); 
		}
		while (select < 1 || select > 3) ;
		return select; 
		}
2
Contributors
1
Reply
3
Views
6 Years
Discussion Span
Last Post by gerard4143
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.