// Code derived from Stroustrup's PPP2 book// § 10.11.1 In-memory representation// -and beginning on p 369#include<iostream>#include<vector>usingnamespacestd;//------------------------------------------------------------------------------constintnot_a_reading=-7777;// less than absolute zeroconstintnot_a_month=-1;// a day of temperature readings, organized by hourstructDay{vector<double>hour{vector<double>(24,not_a_reading)};};// a month of temperature readings, organized by daystructMonth{intmonth{not_a_month};// [0:11] January is 0vector<Day>day{32};// [1:31] one vector of readings per day};// a year of temperature readings, organized by monthstructYear{intyear;// positive == A.D.vector<Month>month{12};// [0:11] January is 0};intmain(){Yeary{};Monthm{};Dayd{};cout<<y.month.size()<<'\n'//<<m.day.size()<<'\n'//<<d.hour.size()<<'\n';}