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

Recommended Answers

All 3 Replies

well 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.

A less advanced solution. I'd rather not use something we haven't learned.

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.