I'm using cin >> x[0] >> x[1] >> x[2] >> x[3];
etc to get input such as:
1 2 3 4.
But my problem is that there could be anywhere from 3 different numbers (1, 2, and 3, for example) to 20 different numbers, and I won't know how many beforehand. Because the user could enter up to 20 numbers, I've repeated the pattern above until x[19]. I've found that the program will not continue until it has an input for every single one of these values.