I have a program due shortly and I can't get this to work. I have many errors that show up and can't figure them out. Can I get some help to get me on the correct path.
// This program shows a structure with two nested structure members.
#include <iostream> // standard IO routines
#include <iomanip> // for output formatting
#include <fstream> // standard file stream
#include <cmath> // standard math functions
#include <string> // standard C++ library
using namespace std; // standard C++ namespace
struct Weather
const int RAINFALL_LENGTH = 2;
const int HIGH TEMP_LENGTH = 3;
const int LOW TEMP_LENGTH = 3;
string month[11];
month[0] = January;
month[1] = February;
month[2] = March;
month[3] = April;
month[4] = May;
month[5] = June;
month[6] = July;
month[7] = August;
month[8] = September;
month[9] = October;
month[10] = November;
month[11] = December;
int main()
{
RainFall;
// Ask for the user for the amount of rainfall
cout << "Enter the amount of rainfall: ";
cin.getline(rainfall.Inches, RAINFALL_LENGTH);
// Get the high and low temperatures
cout << "Now enter the high temperature:\n";
cout << "Temperature (up to 3 digits): ";
cin >> High.Temperature.month;
cout << "Enter the low temperature: \n";
cin >> Low.Temperature.month;
cin.get(); // Remove the remaining newline character// This <strong class="highlight">program</strong> shows a structure with two nested structure members.
return(0);
}
struct month
{
int rainfall;
int high_temp;
int low_temp;
};