Comparing strings with spaces | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Comparing strings with spaces

Ok so I'm trying to compare strings with spaces (names) but using the normal bubble sort or qsort isn't working any help would be appreciated Edit: my code looks something like this but the only difference i take the names from a file https://code.sololearn.com/cSiFjRdnL7HQ/?ref=app

23rd May 2020, 11:03 AM
PIZZA
PIZZA - avatar
2 Answers
+ 4
provide your code for actual analysis as nothing can be made out by reading the question
23rd May 2020, 11:06 AM
Prabhakar Dev
Prabhakar Dev - avatar
+ 2
How are you comparing the two strings that you need to sort them? are you not allowed to use standard string function?
23rd May 2020, 11:08 AM
Ipang