C language getchar () function is not to be compiled [urgent]

Users questions:ar (); printf ( "3 * n ");}} 2nd getchar () function is how the matter will not be compiled, please answer, my compiler is no problem to add another getchar (); and getch ( ); Specific What is the difference
Experts answer:printf ( "Please select:"); a = getchar (); printf ( "1 * n"); replaced printf ( "Please select:"); a = getchar (); getchar (); printf ( "1 * n "); because you enter a characterAfter also entered a carriage return, you must also read out this carriage. getchar () function after you type a character on the screen display the characters, and wait for the end, after you type carriage return input. getch () function not show your input, do not wait for carriage return. In addition the statement is available intaTo, and does not have to change the char.
  • This information provided by the users.Thanks!