#include #include #include #include using namespace std; void main () { string word, limite; vector wordVector; cout << " Ingrese sus datos terminando con .\n"; cin >> word; while (word !=".") { wordVector.push_back(word); cin >> word; } cout << "Lista de Datos ingresados aleatoriamente\n"; cout << "========================================\n"; cout << "Tamaño de la listas =" << wordVector.size() << endl; cout << "String" << endl; for (int i = 0; i< wordVector.size(); i++) cout << wordVector[i] << endl; cout<< "Ingrese limite de su búsqueda = " ; cin >> limite; vector::iterator iter =upper_bound(wordVector.begin(),wordVector.end(),limite); if (iter !=wordVector.end()) cout << "El upper bound es = " <<*iter << endl; }