#include #include #include #include using namespace std; void main () { string word; list wordList; while (cin >> word) wordList.push_front(word); cout << "Lista de Datos ingresados aleatoriamente\n"; cout << "========================================\n"; cout << "Tamaņo de la listas =" << wordList.size() << endl; cout << "String" << endl; for (list::iterator p=wordList.begin(); p != wordList.end(); p++) cout << *p << endl; wordList.sort(); cout << "Lista de String Ordenados ascendente\n"; cout << "========================================"<< endl; for (list::iterator p=wordList.begin(); p != wordList.end(); p++) cout << *p << endl; wordList.reverse(); cout << "Lista de Datos luego de revertir lista\n"; cout << "========================================"<< endl; for (list::iterator p=wordList.begin(); p != wordList.end(); p++) cout << *p << endl; }