void main(void)
{
const int ARRAY_SIZE = 13 ;
int IntArray[ARRAY_SIZE] = {23,13,42,98,23,13,13,56,42,87,42,56,42} ;
vector<int> IntArrayB;
int *location ; // stores the position of the first
// matching element.
int j = 0;
for(int i = 0 ; i < ARRAY_SIZE; ++i)
{
location = find(IntArrayB.begin(), IntArrayB.end(),IntArray[i] ) ;
if (location == IntArrayB.end())
IntArrayB.push_back(IntArray[i]);
}
cout << "the arrar size is: "<<IntArrayB.size();
cout <<"the element are: "<<endl;
for(i = 0; i < IntArrayB.size() ; ++i)
cout << IntArrayB[i] << ends;
cout << endl;