how can i arranged the input words alphabetically, like in the dictionary..please help me....please!!!!
taichou
0
Newbie Poster
Recommended Answers
Jump to Post@nitu_thakkar
That appears to be a sort for the characters in a string, to put the highest character in the string as the first character.
@taichou
The above sort could be adapted to sort strings in a list.
Where do the words come from?
How …
Jump to PostI would recommend using a bubble sort with the strcmp function as a comparison.
Jump to Posti agree with death_oclock and what i type here is actually just more detailed explanation of his suggestion
problem is that if you use standard input (keyboard), you will have to make dynamic array, or to predetermine number of maximum words.
bubble sort is pretty good option since it's …
All 9 Replies
nitu_thakkar
-10
Light Poster
Murtan
317
Practically a Master Poster
death_oclock
103
Posting Whiz
taichou
0
Newbie Poster
Alibeg
1
Junior Poster in Training
death_oclock
103
Posting Whiz
ajay.krish123
-4
Junior Poster in Training
Aia
1,977
Nearly a Posting Maven
ajay.krish123
-4
Junior Poster in Training
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.