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