no match for complain

From: Edo (edwardoJE_at_aking.com)
Date: 06/29/04


Date: Tue, 29 Jun 2004 10:24:08 -0700

Hello
what is the problem. I declared every thing "I think" right, why it is
complaining
Untitled1.cpp:16: no match for `std::_List_iterator<double, double&,
double*>& < std::_List_iterator<double, double&, double*>' operator

thanks

#include <iostream>
using std::cout;
using std::endl;

#include <list>
using std::list;

int main()
{
     list<double>::iterator it;
     list<double> lst;
     *it = 34;
     *++it = 45;
     *++it = 87;
     it = lst.begin();
     for (;it < lst.end(); ++it){
         cout << it << '\t' << *it << endl;
     }
     system("pause");
     return 0;
}