can we do sorting in chars in c++
like
if acdb is input
and abcd as output
any one provide me prog for this ...........
or Sample code:
plz...........
ninja_gs 0 Light Poster
Recommended Answers
Jump to PostHow are the char stored---individual free standing variables, string (C style vs STL string object vs other string object implementation like CString or APSTring), or individual char in an array/list/vector/stack, whatever?
Jump to Postcan any one provide me a sample code for it ........?????
plzSample code for what? A sorting algorithm? Sorting characters as opposed to integers (as Mosaic mentions, characters are treated as integers, only they don't have as big of a range). Lots of sample code out there. Check the …
All 6 Replies
Lerner 582 Nearly a Posting Maven
MosaicFuneral 812 Nearly a Posting Virtuoso
ninja_gs 0 Light Poster
VernonDozier 2,218 Posting Expert Featured Poster
MosaicFuneral 812 Nearly a Posting Virtuoso
Freaky_Chris 299 Master Poster
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.