+ 1
How to sort names in string(data type) in c++??
we want to list numbers respectively by name
1 Answer
+ 3
Can you explain what do you want to do? Sort a string containing names or something else?
And are all the names in a single string or a container of strings?
For the first :
https://code.sololearn.com/c1ksn2xGsHw7/?ref=app
If its the second , simply use the sort function as in the main of the above code.