title: Error: Initializing Argument 1 of
body: <p>I've looked around and seen quite a few of these, but none of them provided the solution for my problem. I'm getting this compilation error with the following code:</p>
  
  <blockquote>
    <p><strong>THE ERROR:</strong> </p>
  </blockquote>
  
  <h2><img src="https://i.stack.imgur.com/sPswT.png" alt="enter image description here"></h2>
  
  <p><strong>THE CODE:</strong></p>
  
  <pre><code>const int TOP_WORDS = 25;
  
  ...
  
  void topWords(Hash t, string word, string topA[]); 
  
  int main()
  {
      ...
      Hash table1;
      string word = "example";
  
      string topWordsArr[TOP_WORDS];
  
      table1.addItem(word);
      topWords(table1, word, topWordsArr);
  
      ...
  }
  
  ...
  
  void topWords(Hash t, string word, string topA[])
  {
      int i = 0;
      int tempCount = t.itemCount(word);
      int tempCount2 = t.itemCount(topA[i]);
  
      while (tempCount &gt; tempCount2 &amp;&amp; i &lt; TOP_WORDS) {
          i++;
          tempCount2 = t.itemCount(topA[i]);
      }
  
      if (i &gt; 0)
  </code></pre>
  
  <p>All the other posts I've seen about this error involved an incorrect syntax with declaring/passing the string array parameter, but I've double and triple checked it all and I'm certain it's correct; though I've been wrong before..</p>