跳轉到內容

C++ 程式設計/程式碼/標準 C 庫/函式/putchar

來自華夏公益教科書,自由的教科書
語法
#include <cstdio>
int putchar( int ch );

putchar() 函式將 ch 寫入 stdout。程式碼

putchar( ch );

putc( ch, stdout );

相同。putchar() 函式的返回值是寫入的字元,如果出現錯誤,則返回 EOF

相關主題
putc
華夏公益教科書