need help manipulating files

Hi guys, I'm not a noob in C programming, but I need help!

I need to do a program that can do these things:
-Include a new name
-Change an already existing name
-list the names in alphabetic order
-delete name
-save list and exit the program

requisites:
the list can have 50 names (maximum)
the names can be added at any time
the list needs to be saved in a file with a name informed by the user

thank you for helping! tell me if I need to say something more (sorry about english)

I need it for yesterday!!
Doesn't your homework assignment say anything about the context?

-Include a new name
std::vector::push_back()

-Change an already existing name
std::string::operator=

-list the names in alphabetic order
qsort() from <cstdlib>

-delete name
std::vector::erase()

-save list and exit the program
std::fstream::write()

I admit, I'm mocking you a bit, but the hints are actually correct. If you're not a noob as you mentioned you should be able to build the other stuff around that.

But please don't just put your homework here and expect people to do it for you.

Topic archived. No new replies allowed.