Quote:
C++ how do I make a program that use 1D array, looping and comparing the elements?
It is not your first C program.
- At least get started with the standard empty minimum skeleton.
- Declare the first array.
- Add a loop that will every element of array.
Quote:
Original Element of array: 3 5 3 2 7 10 15 15 2 51
Unique Element of array: 3 5 2 7 10 15 1
Guessing you want to remove duplicates, but example have error.
Try to do the job by hand, how do you proceed ?
This is the base of your algorithm and your program.