揪阿基米德來泡湯
2014年2月23日 星期日
2014年1月18日 星期六
C 語言 Get 字元 API
Prototype in
Returns ch, the character displayed.
On success, return the character ch.
On error, return value of EOF
Prototype in
On error, it returns EOF.
- int getch(): Get character from console, no echoing
- int getche(): Get character form the console and echoes to screen
- int putch(int ch): Outputs character to the text window on the screen.
Returns ch, the character displayed.
- int ungetch(int ch): Push a character back to the keyboard.
On success, return the character ch.
On error, return value of EOF
Prototype in
- int getchar(): Get character from stdin
- int putchar(int ch): Outputs character on stdout
On error, it returns EOF.
訂閱:
文章 (Atom)