+ 1

How to sort names in string(data type) in c++??

we want to list numbers respectively by name

21st Jan 2018, 8:16 AM
atefeh bahadori
atefeh bahadori - avatar
1 Antwort
+ 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.
21st Jan 2018, 8:34 AM
Kinshuk Vasisht
Kinshuk Vasisht - avatar