hello every one
I'm working on a basic console app in C++
user have a list of people that contains 13 names,user should enter one of the names of the list and the app should show user a relation status
(one of the names in the list is jack,we want the app to tell us the 12 other people in the list have what kind of relation with jack,for example,if user entered the jack,the app show us "Himself" or if entered sara,show us "his mother")
this is the list: (jack,sara,john,walt,rose,kate,arnold,james,taylor,sawyer,jimmy,nikita,fedal)
when in the app I enter john,the app shows me the "niece or father",but when i start entering the second name up to 13th name,the app shows me the "error" , in fact just first define works
this is my code: