hello guys!!!!!!!!!!! please,i have tried as much as i can to sort a given name alphabetically.but,i couldn't get it.please, help me.

Welcome to Daniweb!

Please show us your attempts - we'll be much more inclined to help you fix something you already have instead of writing it for you from scratch :)

Can you also clarify the problem? Do you have a list of names? Are they in a std::vector<std::string>? If so, you should be able to use sort() from #include <algorithm> Good luck!

Dave

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.