0
I have to write a code in C++ in a question where, first, the user enters a number that determines the size of an array, and then, insert in a single row, separated by spaces, the numbers of that array for them to be stored. How to capture these numbers in a single line? And what function do you use to verify that the amount of elements you entered matches the size of the array? (to avoid the error of writing more numbers than the size/space)
Put there the code that you tried but didn’t work... (or you’re wanting the group to do their homework?)
– TTKDroid