Hi ,
I'm still stuck. I don't know why this is so hard.It's a phone directory program. OptionD function is the issue which is a function that will have the user enter the phone number. The program finds the phone number and corresponding information. I used a structure and an array for this the array is the same type as my structure. The function is successful in finding the information now trying to move things from one array to another except the thing I want to get rid of is such an issue. Someone said if you use std::vector. Now the question is can I uses that with a structure? If I use it in the same way I use my array now. Also if I'm going to do some sort of swap and leave the information I don't want in the original array how big do I make the other array? Please any help, please.
Sorry I'm so CONFUSED RIGHT NOW!!!
This is what I got
Put an else on line 30 -- you don't want to increase index after you've found the index you want. I've already given you a couple ways to remove the element from the array in your other thread...