printf("Please input the first word£o");scanf("%c",&first);getchar(); //增加这一行,后面的getchar()都不需要了switch(first)