How would I output this into:
int main()
I've tried:
int main()
{
PostTemperatures;
}
struct WeatherStation {
string StationName;
double Temperature;
};
void PostTemperatures(WeatherStation BigBasin,WeatherStation Foothill,
WeatherStation DeAnza, WeatherStation MiddleField,
WeatherStation RedwoodCity)
{
cout<< "Enter reported temperatures..."<<"\n"<< "\n";
BigBasin;
BigBasin.StationName = "Big Basin";
cout << "Weather Station " << BigBasin.StationName<<" : ";
cin >> BigBasin.Temperature;
Foothill;
Foothill.StationName = "Foothill";
cout << "Weather Station " << Foothill.StationName<<" : ";
cin >> Foothill.Temperature;
DeAnza;
DeAnza.StationName = "DeAnza";
cout << "Weather Station " << DeAnza.StationName<<" : ";
cin >> DeAnza.Temperature;
MiddleField;
MiddleField.StationName = "MiddleField";
cout << "Weather Station " << MiddleField.StationName<<" : ";
cin >> MiddleField.Temperature;
RedwoodCity;
RedwoodCity.StationName = "Redwood City";
cout << "Weather Station " << RedwoodCity.StationName<<" : ";
cin >> RedwoodCity.Temperature;
}