C++ ignore enter key when pressed. | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 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 Réponse
+ 1
cin.ignore()
8th Oct 2020, 6:03 AM
Anthony Maina
Anthony Maina - avatar