Posted on 2000-03-12
I need to be able to take 20 integers and as each one is read, display it only if it is not a duplicate of a number already read. This is what I have but it doesn't do what I need it to. Anybody?
const int arraysize=5;
const int frequencysize=101;
cout<<"Enter 20 integers between 10 and 100\n";
cout<<"The non-duplicate values are:\n"<<n;
I have a funny feeling the frequency is irrelevant...