I have a problem with gets function. I've put gets as a statement for a switch case, which is inside a loop. This gets seems to get ignored everythime i run my program. What have I done wrong?
Basically, when i choose menu 1, the output is:Code:do { printf("Your choice: "); scanf("%d",&menu); switch(menu) { case 1: printf("Enter command name to look up: "); gets(input); printf("aaa\n");
Your choice: 1
Enter command name to look up: aaa
Your choice:



LinkBack URL
About LinkBacks



