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 PostCharacters can be easily sorted the way numbers are, since they are numbers.
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.