// user.cpp #include #include #include "utility.h" #include "lists.h" using namespace std; int main() { list L; L.push(new useful("one", 11)); L.push(new useful("two", 22)); L.push(new useful("three", 33)); L.push(new useful("four", 44)); L.push(new useful("five", 55)); cout << L << "\n"; useful * x = L.pop(); cout << * x << "\n"; x->enlarge(); cout << * x << "\n"; cout << factorial(L.pop()->get_number() / 5) << "\n"; }