title: What is wrong? Incomplete type is not allowed?
body: <p>I don't understand what is wrong with this code. It says "incomplete type is not allowed for my function."</p>
  
  <p>This is what I'm trying to do:</p>
  
  <blockquote>
    <p>Write a function named <code>yrClac()</code> that has an integer parameter representing the total number of days since the turn of the century (1.1.2000) and reference parameters named year, month and day. The function is to calculate the current year, month and day for the given number of days passed to it. Using the references, the function should directly alter the respective actual arguments in the calling function. For this problem, assume that a year always has 365 days and every month has exactly 30 days.</p>
  </blockquote>
  
  <pre><code>#include &lt;iostream&gt;
  
  using namespace std;
  
  void yrClac(int total, int &amp;a, int &amp;b, int &amp;c);  // says incomplete type
                                                   // is not allowed
  
  int main()
  {
      int totaldays;
      cin &gt;&gt; totaldays;
  
      int year = 2000, month = 1, day = 1;
      void yrClac(totaldays, year, month, day);
      cout &lt;&lt; year &lt;&lt; month &lt;&lt; day;
  
      system ("PAUSE");
      return 0;
  }
  
  void yrClac(int total, int &amp;a, int &amp;b, int &amp;c)
  {
      a = 365 / total;
      b = total - a * 12;
      c = total - b * 30;
  }
  </code></pre>