getchar
常见例句
- The standard library provides several functions for reading or writing one character at a time, of which getchar and putchar are the simplest.
标准库提供了一次读/写一个字符的函数,其中最简单的是getchar和putchar两个函数。 - printf("%d ",a[i]); printf("\n"); getchar(); return 0;
作者:佚名技巧来源:不详点击数:更新时间:2008-5-17 - Note that getchar reads from stdin and is line buffered;this means it will not return until you press ENTER.
EOF作为行结束符时的情况,这时候输入Ctrl D并不能结束getchar(),而只能引发getchar()提示下一轮的输入。 - Each time it is called, getchar reads the next input character from a text stream and returns that as its value.That is, after c = getchar();
每次调用时,getchar函数从文本流中读入下一个输入字符,并将其作为结果值返回。 返回 getchar