[C++] Find duplicates in a List

I'm trying to receive integers from my keyboard, and as each integer 's' is entered, the function looks for 'n' in the list.

If found, I want it to stop and output that 'n' is in the list.

If end of the list is reached, then it appends 'n' to the end of the list and outputs 'n' wasn't in the list, but has been added.

Fairly new to coding, didn't quite know where to start.... Thanks!
Topic archived. No new replies allowed.