// Example program
#include <iostream>
#include <string>
#include <algorithm>
int main()
{
std::string name[] = {"Hello", "World", "!!!"};
int z = sizeof(name) / sizeof(name[0]); //Get the array size
sort(name,name+z); //Use the start and end like this
for(int y = 0; y < z; y++)
std::cout << name[y] << std::endl;
}