Got it working. I found the fflush command and entered it prior to the gets.
/* Statements */
fflush(stdin);
printf("\nEnter a Name and Number Below:\n ");
printf(":");
gets(newPtr);
printf( "The line entered was: %s\n", newPtr );
success = AVL_Insert...
I have figured out that the problem is some how caused by my menu system. I tested by calling the function before the menu function in main and when I did this it did prompt me. For some reason with the menu function running it passes some parameter over to the variable assigne as the variable...
I have gets command in my code but when it should prompt me it skips right past it and it appears to insert a number string that looks to be related to the number of character designated in the char declaration. Her is a copy of the function. Is thare any other command that can be used to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.