+ 4
Can I catch some keys like ESC or ENTER, BACKSPACE,ARROWS etc.. whit cin>>? Or iostream?
5 Respostas
+ 15
I had a thread to query the use of arrow keys in C++ console app. I have been using getch() (C standard) till someone suggested getchar() (C++ standard).
+ 4
Thank you guys!
Does those getXX() functions belongs to iostream or do i need to include some different headers?
+ 4
ok. so much appreciated :)
+ 1
Following two functions shall be best for capturing above keystrokes
1. getch() : Key will be captured but not displayed on the console.
2. getche() : Key will be captured and displayed on the console
0
getch() and getche () belong to conio.h whereas getchar () belongs to iostream.h