how would i get it to repeat the array that the user puts in ?
my current output i get:
"Please enter the size that you would like of an array from 0-100 :
Now enter 3 characters :
The numbers you entered are: -858993460Press any key to continue"
using namespace std;
void deleterepeats(char a, int& arraysize);
int main ()
int index_used = 0;
int arraysize, a;
cout<<"Please enter the size that you would like of an array from 0-100 : \n";
cout<<"Now enter "<< arraysize<<" characters :\n";
int k= 0;
cout <<"The numbers you entered are: ";
for (int index = 0; index < arraysize; index++);
cout << a[index];