cpp-projects icon indicating copy to clipboard operation
cpp-projects copied to clipboard

Fixed bug in readArray

Open 5ycm opened this issue 9 months ago • 0 comments

Fixed failed cin buffer state in readArray.

cin.clear() and cin.ignore() Flush the cin buffer after non-integers are received as input.

5ycm avatar Jun 18 '25 18:06 5ycm