Calculate high and low value of array
<pre><code> struct WeatherStation  {

string Name;
double Temperature;

 };

 void Initialize(WeatherStation[]);
 void HL(WeatherStation List[]);

int main()

 {
 string Command;
  WeatherStation Stations[5];

  //some commands

 }
 void Initialize(WeatherStation StationList[])

 {

  StationList[0].Name = "A";
  StationList[0].Temperature = 0.0;

  StationList[1].Name = "B";
  StationList[1].Temperature = 0.0;

  StationList[2].Name = "C";
  StationList[2].Temperature = 0.0;

  StationList[3].Name = "D";
  StationList[3].Temperature = 0.0;

  StationList[4].Name = "E";
  StationList[4].Temperature = 0.0;

  }

 void HL(WeatherStation List[])
  {
   int K;
   int Low = List[0];            
   int High = List[0];       

   for(K = 0 ; K &lt; 5 ; K++)      
    if(List[K] &lt; Low)
    Low = List[K];

   for(K=0 ;  K &lt; 5 ; K++)    
    if(List[K] &gt; High)
    High = List[K];

   cout &lt;&lt; "Lowest Temperature:  " &lt;&lt;Low &lt;&lt; endl;
   cout &lt;&lt; "Highest Temperature: "&lt;&lt; High &lt;&lt; endl;
   } 
</code></pre>

<p>The last part is tripping me up.  </p>

<blockquote>
  <p>chief.cpp: In function ‘void HL(WeatherStation*)’:<br>
  chief.cpp:124: error: cannot convert ‘WeatherStation’ to ‘int’ in initialization<br>
  chief.cpp:125: error: cannot convert ‘WeatherStation’ to ‘int’ in initialization<br>
  chief.cpp:128: error: no match for ‘operator&lt;’ in ‘*(List + ((unsigned int)(((unsigned int)K) * 12u))) &lt; Low’<br>
  chief.cpp:129: error: cannot convert ‘WeatherStation’ to ‘int’ in assignment<br>
  chief.cpp:132: error: no match for ‘operator>’ in ‘*(List + ((unsigned int)(((unsigned int)K) * 12u))) > High’<br>
  chief.cpp:133: error: cannot convert ‘WeatherStation’ to ‘int’ in assignment  </p>
</blockquote>
