C++ ignore enter key when pressed. | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 1

C++ ignore enter key when pressed.

Is there any way to ignore the enter key when it’s pressed by the user?

8th Oct 2020, 12:11 AM
Remender
1 Antwort
+ 1
cin.ignore()
8th Oct 2020, 6:03 AM
Anthony Maina
Anthony Maina - avatar