+ 3
Should I use a condition like "std::cin.peek() != '\n'" for loops to catch cin extraneous input?
I've an example code posted in my profile named "Console Calculator for any number of input". Could such usage be a bad practice?
2 Réponses
+ 1
Theres more than one way tp get a job done. If your just learning and practicing, maybe leave it alone. And later on come back and update?
0
no dont do that