// Code derived from Stroustrup's PPP2 book// § 4.6.3 A numeric example// -and beginning on p 122#include<iostream>#include<vector>usingstd::cin;usingstd::cout;usingstd::vector;intmain(){cout<<"Please enter temperatures: ";vector<double>temps;// temperaturesdoubletemp;while(cin>>temp)// readtemps.push_back(temp);// put into vector// … temp might be used here …}