I have to write a C ++ code in a question where the user first inserts a number that determines the size of an array, and then inserts in a single line, separated by spaces, the numbers of that array so that stored. How do I capture these numbers on a single line? And what function to use to check if the amount of elements that has been inserted matches the size of the array? (so there is not the error of writing more numbers than the size / space)