Deleting Data within a Structure or class
My apologies for no code. I have a question that I could not seem to find the answer to.
I currently have a program that enters data from the Keyboard into a structure. If I wanted to delete records once they were entered into the structure:
1) How would this be accomplished?
Search the structure using the name or other unique field, than
tell the program to delete that record EXAMPLE: car[i] ???
2) or would this type of problem be better suited if a class was used instead of a structure? If so how?
Thanks for any help / comments. I am new to C++ so if you chose to get fancy and impress me please explain what you are doing and how it works.
I know thats asking for a lot, but many thanks in advance,