I'm trying to create a user-defined array using struct, create an array of contacts, and sort and search the array by both first and last name. Right now I'm trying to build the array and simply display it right now but its erroring out on me right off the bat. This is new territory for me. The only thing that is underlined in red in the code is commented with the error.
I have been trying to get this to work and have got the enterContacts function to work. My problem now is that I can't get the printContacts function to work properly. The printContacts will only print out the last entry from the enterContacts 5 times. I want it to print out each of the contacts from the array. Any idea how to make it work that way?
Thanks for the reply cire.
I am going off the guide lines for my project by creating a user defined array. Ideally I would have the program read and append a text file but I was told I can't do that for this project. The array structure and functions are predetermined and mandatory for me to get the grade.
Its not like I'm saying here is my homework do it for me. There is either something I am missing, over looking, or obviously don't know and I'm here trying to help myself understand it. A fresh pair of eyes can usually see something that has been overlooked and a more knowledgeable coder can help me understand.
This program has made me feel like I am completely brain dead the first couple of programs for this semester were so easy I whipped them out in class, but this one, even the simplest stuff has eluded me.
Hey thank you desago. I have just been feeling brain dead lately and after you pointed out what I needed to do it all fell into place I've already moved pasted the printing of the array and worked through my first and last name sort. Now I'm working on the search aspect.
I'll leave this thread open if I need to ask questions about the search aspect.