title: "error: request for member ‘size’ in ‘a’, which is of pointer type" but I didn't think it was a pointer
body: <p>So, I thought I was trying to do something simple, but apparently not...</p>
  
  <p>I wrote this function so I could extend it later and have a quick way to give the user a menu when required by going <code>menu(mystrings)</code>:</p>
  
  <pre><code>int menu(string a[]) {
      int choice(0);
      cout &lt;&lt; "Make a selection" &lt;&lt; endl;
      for(int i=0; i&lt;a.size(); i++) {
          cout &lt;&lt; i &lt;&lt; ") " &lt;&lt; a[i] &lt;&lt; endl;
      }
      cin &gt;&gt; choice;
      cout &lt;&lt; endl;
      return choice;
  }
  </code></pre>
  
  <p>But for some reason I get:</p>
  
  <pre><code>main.cpp: In function ‘int menu(std::string*)’:
  main.cpp:38:12: error: request for member ‘size’ in ‘a’, which is of pointer type ‘std::string* {aka std::basic_string&lt;char&gt;*}’ (maybe you meant to use ‘-&gt;’ ?)
    int n = a.size();
  </code></pre>
  
  <p>when I try compiling. Could anyone translate that error for me and explain what <code>-&gt;</code> is, thank you.</p>