getchar
常見例句
- The standard library provides several functions for reading or writing one character at a time, of which getchar and putchar are the simplest.
標(biāo)準(zhǔn)庫提供了一次讀/寫一個字符的函數(shù),其中最簡單的是getchar和putchar兩個函數(shù)。 - printf("%d ",a[i]); printf("\n"); getchar(); return 0;
作者:佚名技巧來源:不詳點擊數(shù):更新時間:2008-5-17 - Note that getchar reads from stdin and is line buffered;this means it will not return until you press ENTER.
EOF作爲(wèi)行結(jié)束符時的情況,這時候輸入Ctrl D竝不能結(jié)束getchar(),而衹能引發(fā)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();
每次調(diào)用時,getchar函數(shù)從文本流中讀入下一個輸入字符,竝將其作爲(wèi)結(jié)果值返廻。 返回 getchar