getchar()与getch()

getch()按键后立即读取,getchar()从输入流中读取输入,所以getch()交互性更强。getchar()包含在stdio.h中,getch()包含在conio.h中。

转载于:https://www.cnblogs.com/magicpub/p/9066399.html