I am having trouble trying to figure out how to get user inputs into an array. I have to get 10 user inputs into the array and I'm trying to use a loop but once I run it it crashes whenever you input the first value. I've been stuck on this for hours now trying to do some research so any help is appreciated.
Do you mean to check if counter1== 0 (equality), not to assign 0 to counter1?
while (counter1 = 0)
Since you have a fixed number of iterations to fill the elements of the array, you can use a for loop to go through each element. Something like this...
1 2 3 4 5
for (int counter=0; counter<arraySize; counter++)
{
cout<< "Please enter data: ";
cin >> myArray[counter];
}