0

Program to sort user input strings according to the dictionary.

Sorting Strings

9th Jul 2019, 12:44 PM
Rishabh
Rishabh - avatar
6 odpowiedzi
0
the logic is simple, if the first character in a word is the smallest you puy it at the top on and on like that since A=65, B=66 so you can use that
9th Jul 2019, 8:12 PM
✳AsterisK✳
✳AsterisK✳ - avatar
+ 2
show us what youve done so far. i cant help you unless you try
9th Jul 2019, 1:17 PM
Choe
Choe - avatar
+ 1
Can you explain what you want in more detail?
9th Jul 2019, 12:47 PM
Trigger
Trigger - avatar
0
Thomas Williams a program in c , where user inputs 4 words , that get sorted according to their position in the dictionary.
9th Jul 2019, 4:19 PM
Rishabh
Rishabh - avatar
0
Choe , I thought of inserting a string array of the english alphabet and and using pointers to compare the words to the array elements and sorting them. But can't obtain the correct logic for it.
9th Jul 2019, 4:21 PM
Rishabh
Rishabh - avatar
0
*AsterisK* thanks
11th Jul 2019, 8:14 AM
Rishabh
Rishabh - avatar