So am doing a practise problem from jumping into c++. Let me try to explain a problem I have.I have built array of structures that contains int(num of days) and string(Name).So basicy user should enter name of a friend and days they last talked,and then make a list sorted by the names of the friends of by how recently it was since they talked to each friend.So my idea is to take num of days,and sort them, but then I dont know how to connect that again with Names so I can print it out. am not looking for a homework solution, just some guidance. thanks