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

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -