Why is the if statement failed? C++

nice, your problem is you have infinite loop

this adds the same duplicate items always, investigate it.

hope it helps
cheers!

1 Like