title: Too many arguments to function
body: <p>I am getting this error from my header file: <code>too many arguments to function void printCandidateReport();</code>.  I am fairly new to C++ and just need some guidance in the right direction to solving this error.</p>
  
  <p>My header file looks like this:</p>
  
  <pre><code>#ifndef CANDIDATE_H_INCLUDED
  #define CANDIDATE_H_INCLUDED
  
  // Max # of candidates permitted by this program
  const int maxCandidates = 10;
  
  // How many candidates in the national election?
  int nCandidates;
  
  // How many candidates in the primary for the state being processed
  int nCandidatesInPrimary;
  
  // Names of the candidates participating in this state's primary
  extern std::string candidate[maxCandidates];
  
  // Names of all candidates participating in the national election
  std::string candidateNames[maxCandidates];
  
  // How many votes wone by each candiate in this state's primary
  int votesForCandidate[maxCandidates];
  
  void readCandidates ();
  void printCandidateReport ();
  int findCandidate();
  #endif
  </code></pre>
  
  <p>and the file calling this header file:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include "candidate.h"
  /**
  * Find the candidate with the indicated name. Returns the array index
  * for the candidate if found, nCandidates if it cannot be found.
  */
  int findCandidate(std::string name) {
      int result = nCandidates;
      for (int i = 0; i &lt; nCandidates &amp;&amp; result == nCandidates; ++i)
          if (candidateNames[i] == name)
              result = i;
      return result;
  }
  
  /**
  * Print the report line for the indicated candidate
  */
  void printCandidateReport(int candidateNum) {
      int requiredToWin = (2 * totalDelegates + 2) / 3; // Note: the +2 rounds up
      if (delegatesWon[candidateNum] &gt;= requiredToWin)
          cout &lt;&lt; "* ";
      else
          cout &lt;&lt; "  ";
      cout &lt;&lt; delegatesWon[candidateNum] &lt;&lt; " " &lt;&lt; candidateNames[candidateNum]
           &lt;&lt; endl;
  }
  
  /**
  * read the list of candidate names, initializing their delegate counts to 0.
  */
  void readCandidates() {
      cin &gt;&gt; nCandidates;
      string line;
      getline(cin, line);
  
      for (int i = 0; i &lt; nCandidates; ++i) {
          getline(cin, candidateNames[i]);
          delegatesWon[i] = 0;
      }
  }
  </code></pre>
  
  <p>why am I getting this error and how can I fix it?  </p>