c++ - Input validation for Integer and Double data types -


because there error in code when posted question, not question. have deleted , replaced link correct solution.

correct solution input validation

cin.getline(buffer, '\n'); <-- wrong, need buffer size.

cin.getline(buffer, 10000, '\n'); 

Comments

Popular posts from this blog

Python __call__ special method practical example -

arrays - jQuery - Retrieve values from HTML elements and return their sum -