char ch[1000]; //getchar(); for(int i = 0; i < 3; i++) { gets(ch); }
为什么加上了getchar才能输入三个字符串,而不加上则只能输入两个字符串就结束了,还请大佬帮忙详细解释一下!