Write a script to sort a list
A C++ script to sort a list of strings. The script uses the STL function to sort the vector using a lambda function converting strings to lower case and comparing the values.
Instructions to execute the script
Execute the script in a CPP compiler of your choice.
Example Output
Enter the number of elements in the list: 5
Tomato
Potate
Apple
grapes
French Fries
Sorted List:
Apple
French Fries
grapes
Potate
Tomato
Log in or sign up for Devpost to join the conversation.