getch()、getche()、getchar()的区别

getch():It reads a character and never wait for Enter key.Just gets processed after getting any key pressed.And it never echoes the character on screen which u pressed.

getche():it works same as getch() but it echoes on screen.

getchar():It works differently from others two. Whenever you are pressing any key then the these are kept in Buffer. After hitting enter the first character gets processed. And it obviously echoes on the screen.

评论

此博客中的热门博文

开通此博客的缘由

链表的应用