Yes you're right about that , guess I'll have to change it. =/
Code:
int choose(void)
{
int option = 0;
printf("Menu: \n"
"1) Input 1 \n"
"2) Implementation \n"
"3) Directive \n"
"4) Quit \n"
"\n"
"Select your option: \n");
scanf("%d", &option);
printf("\n");
return option;
}
I also left out the fact that the switch case is inside a menu loop:
Code:
while(quit != 1)
{
switch..
....
....
....
}
I'm guessing that is probably also a big part of the problem. Thanks anyway going to try and change it, and so far when I tried to change everything I kept on getting errors though when trying to make choose work with fgets.