1 2 3 4 5 6 7 8 9 10 11 12
|
{
int input[20]={1,2,3,4,5,1,2,6,7,8,5,9,10,10,11,12,12,13,14,20}, unique[20], x=0,y=0,hold=0;
for(x = 0; x < 20; x++) {
if(unique[x]!=input[x])
unique[x]<<input[x];
}
cout<<unique[20]<< "\n";
cout<<input[20];
}
cout<<hold;
cin.ignore();
}
|