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"
Â