title: C++ String array sorting
body: <p>I am having so much trouble trying to figure out the sort function from the C++ library and trying to sort this array of strings from a-z , help please!! </p>
  
  <p>I was told to use this but I cant figure out what I am doing wrong. </p>
  
  <pre><code>// std::sort(stringarray.begin(), stringarray.end());
  </code></pre>
  
  <hr>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;string&gt;
  #include &lt;algorithm&gt;
  using namespace std;
  
  int main()
  {
    int z = 0;
    string name[] = {"john", "bobby", "dear", 
                     "test1", "catherine", "nomi", 
                     "shinta", "martin", "abe", 
                     "may", "zeno", "zack", "angeal", "gabby"};
  
    sort(name[0],name[z]);
  
    for(int y = 0; y &lt; z; y++)
    {
      cout &lt;&lt; name[z] &lt;&lt; endl;
    }
    return 0;
  }
  </code></pre>