QuesHub > 在线 > 测试 > 字符 > ASK DETAIL

Why Getch is used for?

Ethan Ward | 2023-05-05 14:09:57 | page views:1081
I'll answer
Earn 20 gold coins for an accepted answer.20 Earn 20 gold coins for an accepted answer.
40more

Zoe Campbell

Studied at the University of Melbourne, Lives in Melbourne, Australia.
getch() is a way to get a user inputted character. It can be used to hold program execution, but the "holding" is simply a side-effect of its primary purpose, which is to wait until the user enters a character. getch() and getchar() are used to read a character from screen.
2023-05-09 14:09:57

Charlotte Davis

QuesHub.com delivers expert answers and knowledge to you.
getch() is a way to get a user inputted character. It can be used to hold program execution, but the "holding" is simply a side-effect of its primary purpose, which is to wait until the user enters a character. getch() and getchar() are used to read a character from screen.
ask:3,asku:1,askr:137,askz:21,askd:152,RedisW:0askR:3,askD:0 mz:hit,askU:0,askT:0askA:4