// Code derived from Stroustrup's PPP2 book// § 4.6.3 A numeric example// -and beginning on p 121#include<iostream>#include<vector>usingstd::cin;usingstd::cout;usingstd::vector;// read some temperatures into a vectorintmain(){cout<<"Please enter temperatures: ";vector<double>temps;// temperaturesfor(doubletemp;cin>>temp;)// read into temptemps.push_back(temp);// put temp into vector// . . . do something . . .//---cout<<'\n';// output above variable values to console...for(doubletemp:temps)cout<<temp<<'\n';}