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.
cin.getline(buffer, '\n'); <-- wrong, need buffer size.
cin.getline(buffer, 10000, '\n');
Comments
Post a Comment