/* vector1.cpp * Anthony Larrain * This program demonstrates working with a vector and a sort algorithm * from the Standard Template Library */ #include #include #include #include using namespace std; int main(){ vector temperatures; double temper; cout << "Enter the temperatures followed by non-numeric character for EOI" << endl; // feed the vector while(cin >> temper){ temperatures.push_back(temper); } // dump vecotor, 5 values per line. for(int i = 0; i < temperatures.size(); i++){ if((i % 5) == 0 ){ cout << endl; } cout << setw(5) << temperatures[i]; } cout << endl << endl << "Temperatures in non decreasing order" <