#include #include "Text.h" #include "Factory.h" #include int main() { cout << "Gestione biblioteca" << endl; vector< Text * > texts; Factory f; f.fill( texts ); cout << "-------------" << endl; vector< Text * >::const_iterator i; for ( i = texts.begin(); i != texts.end(); i++ ) ( * i )->print(); cout << "-------------" << endl; vector< Text * >::iterator j; for ( j = texts.begin(); j != texts.end(); j++ ) delete ( * j ); return 0; }