if I were to say:
int x;
const int number=10;//stating how many elements for the array
cout<<"enter a value: ";
cin>>x;
int values[number]=x //the array to grab what the user typed in
cout<<values;
How can I get the input from the user to go into an array??
int x;
const int number=10;//stating how many elements for the array
cout<<"enter a value: ";
cin>>x;
int values[number]=x //the array to grab what the user typed in
cout<<values;
How can I get the input from the user to go into an array??