scanf causing infinite loop in C
问题 I am relatively new to C, but I have been programming for a few years now. I am writing a program for a college class, and I am confused why the scanf function below is not called, resulting in an infinite loop. I have tried having my scanf outside the function, calling it twice, once from within, once from out, and a few other ways. I read online that the fflush might help, but it hasn't Any suggestions? // store starting variables int players; // print title printf("*-----------------------