Cpp Find Element That Appears