How to remove duplicate ints from a vector

Hi, I got a problem with removing duplicate ints from a unsorted vector.
Problem is that user will type ints as many as he or she can.
The program need to print out unsorted list of numbers after removing duplicates.

eg. user type: 2 4 2 8 4 8

Then need to print out like this: 2 4 8

Plz help me to solve this problem.
I know how to get the numbers from user and put them into vector but I really don't know how to remove duplicate numbers.

Plz! :(
If you use std::set instead of std::vector, duplicates are removed automatically.
Topic archived. No new replies allowed.