#include #include #include "List.hpp" int main() { ecci::List words; std::string word; while (std::cin >> word) { words.append(word); } // std::cout << words << std::endl; //for (ecci::List::ConstIterator itr = words.begin(); itr != words.end(); itr.operator++(0)) { for (ecci::List::ConstIterator itr = words.begin(); itr != words.end(); itr++) { std::cout << *itr << std::endl; } if (!words) { std::cout << "no words loaded" << std::endl; } else { std::cout << words.getCount() << " words loaded" << std::endl; } }