I have an assignment that requires me to write C++ code that asks user for an input a number of times, but notifies them IF the input is a duplicate of another input.
I have created the array but I am having a mind block on how to validate the latest input from the user against information that has already been entered to determine if a duplicate exist.
I am really new to C++, I have spent the last 2 days trying to work this problem out on my own but I am just not getting it!
Any assistance would be appreciated.
Thanks
AlamoGuy
OK, maybe a silly question, but like I said I am new to this programming thing, but what is "foo" what does it stand for?
I tried to use an IF statement such as:
but it didn't work. The array isn't very large it is only set at [10], I thought about creating a FUNCTION to check for duplicates, but for the life of me I can't think it through. BTW I have been out of school for over 30 years, and only now learning about programming as a potential new career venture. I worked in public service before, so I am probably alot slower than most here.
Thanks