}
/* Close file and exit program. */
wind_data.close();
return 0;
}
/*——————————————————————–*/
/* (rand_float function from page 257) */
/*——————————————————————–*/
/*——————————————————————–*/
/* Problem chapter6_32 */
using namespace std;
const int DELTA_TIME = 10;
const int START_TIME = 0;
int main()
{
/* Define variables. */
double ave_wind=0.0, gust_min=0.0, gust_max=0.0, windspeed = 0.0;
int timer=START_TIME, storm_duration=0, storm_flag=NO_STORM;
ofstream wind_data;
/* Open file for writing */
wind_data.open(FILENAME.c_str());