title: Error: expected constructor, destructor, or type conversion before ';' token?
body: <p>I'm trying to compile my code to test a function to read and print a data file, but I get a compiling error that I don't understand - "error: expected constructor, destructor, or type conversion before ';' token".  Wall of relevant code-text is below.</p>
  
  <pre><code>struct Day
  {
    int DayNum;
    int TempMax;
    int TempMin;
    double Precip;
    int TempRange;
  };
  
  struct Month
  {
    Day Days[31];
    int MonthMaxTemp;
    int MonthMinTemp;
    double TotalPrecip;
    int MonthMaxTempRange;
    int MonthMinTempRange;
    double AverageMaxTemp;
    double AverageMinTemp;
    int RainyDays;
    double AveragePrecip;
  }theMonth;
  
  double GetMonth();
  
  double GetMonth()
  {
    for (int Today = 1; Today &lt; 31; Today++)
      {
        cout &lt;&lt; theMonth.Days[Today].TempMax &lt;&lt; theMonth.Days[Today].TempMin;
        cout &lt;&lt; theMonth.Days[Today].Precip;
      }
    return 0;
  }
  
  GetMonth();  // compile error reported here
  </code></pre>