May Adrian wrote: > class A > { >     public: >         ... >         int number;              A(int n):number(n){} > } > > > main (int argc, char *argv []) { >     list l; >     A a1(10), a2(20), a3(30); >     l.push_back (a1); >     l.push_back (a2); >     l.push_back (a3); >        //notice !=, not < ...        for (list::iterator i = l.begin();i != l.end() ; i++)                 cout << (*i).number << endl;         } On the one hand "i" is a "list::iterator". Ont the other docs tell about "iterator_traits", "input_iterator_tag", "bidirectional_iterator"... What type is "iterator"? --  Ivan Martinez (Rodriguez) Bch in Computer Science - MSc student http://www.student.dtu.dk/~u990873 "Ponia Windows98 o superior, asi que instale Linux" Â