Create a 10 number array and initialize each element of the array to 0. Read in 10 numbers, each of which is between 10 and 100, inclusive. As each number is read, validate it and store it in the array only if it is not a duplicate of a number already read. After reading all the values, display only the unique values that the user entered.
Got a start, no idea how to see if it is a duplicate or not, any help would be appreciated:
CODE
#include <cstdlib>
#include <iostream>
using namespace std;
//Lab 3 -- Problem # 2
int main(int argc, char *argv[])
{
int array[10];
int counter = 0;
for ( int i = 0; i < 10; i++ ){
array[i] = 0;
}//end for
cout << "Enter numbers between 10 and 100"<<endl;
for ( int i = 0; i < 10; i++ ){
cin >> array[i];
}//end for
system("PAUSE");
return EXIT_SUCCESS;
}