Ok guys I know I should know this but I didn't do any programming all summer so I'm rusty.
Basically I have to read a file into an array of structs and allow the user to print a specific employees info, print the struct, etc. That part is easy. The user also must be able to add, update, and delete the struct. The add and update aspect are easy. But how would I, when the user inputs the employee they're searching for, delete everything at that spot of the array of structs
ellimist14
-1
Light Poster
Recommended Answers
Jump to Postwell you could use the stl such as a vector or list or if your not allowed to do so you could copy the array into a new array skipping the one you want deleted and then delete the original array then return the new array.
All 3 Replies
NathanOliver
429
Veteran Poster
Featured Poster
ellimist14
-1
Light Poster
vmanes
1,165
Posting Virtuoso
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.