I have an integer array of duplicated values
int array[] = {111, 111, 222, 333, 111, 444, 555, 111};
Out of the above array, I want to assign the unique values to the indexed vector array named vectorArray
Desired vectorArray values:
vectorArray[0] // 111
vectorArray[1] // 222
vectorArray[2] // 333
vectorArray[3] // 444
vectorArray[4] // 555
How would I go about it?