Confirming with Enter | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Confirming with Enter

Look at the Comments in the Programm https://code.sololearn.com/c9JkXUv68Fs6/#cpp

17th May 2018, 8:15 PM
Michelle Becker
Michelle Becker - avatar
2 Answers
+ 3
You could use "cin.get()" but make sure that the buffer is empty. https://code.sololearn.com/c9ifYeqtwa8Q/?ref=app
18th May 2018, 2:52 AM
Christopher Dorado
Christopher Dorado - avatar
+ 1
You could look into stdio.h and getchar() from the c Standart Library
18th May 2018, 12:01 AM
Max
Max - avatar