I'm supposed to write a remove() function to take out some data, however, it seems none of the info is being saved anyways, as when I try to print out all of the info in my structure, I get nothing (dispAll()).
it also seems that the remove() function isn't able to find anything, even if I know it should be there. The only time it seems to recognize there is something in Name/phoneNo is in dispOne(). can anyone tell me what I'm doing wrong or what I need to change to get this to work? Any help is appreciated.
TeleType has your collection of records. Well, it's more a collection of fields, but that's ok for beginners I guess. And you maintain a record count with x.
You should create just one instance of TeleType, probably alongside the declaration of x.
What you're doing wrong is:
Each time you create a new record, you create a new empty TeleType instance. You add your record to it and forget about it, so the record is lost.
Each time you attempt to delete a record, you create a new empty TeleType instance, and look for your record, but it isn't there.