no match for complain
From: Edo (edwardoJE_at_aking.com)
Date: 06/29/04
- Next message: Arthur J. O'Dwyer: "Re: no match for complain"
- Previous message: Edo: "Re: ofstream and rdstate()"
- Next in thread: Arthur J. O'Dwyer: "Re: no match for complain"
- Reply: Arthur J. O'Dwyer: "Re: no match for complain"
- Reply: Mark : "Re: no match for complain"
- Reply: SaltPeter: "Re: no match for complain"
- Reply: Francis Glassborow: "Re: no match for complain"
- Reply: Jerry Coffin: "Re: no match for complain"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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;
}
- Next message: Arthur J. O'Dwyer: "Re: no match for complain"
- Previous message: Edo: "Re: ofstream and rdstate()"
- Next in thread: Arthur J. O'Dwyer: "Re: no match for complain"
- Reply: Arthur J. O'Dwyer: "Re: no match for complain"
- Reply: Mark : "Re: no match for complain"
- Reply: SaltPeter: "Re: no match for complain"
- Reply: Francis Glassborow: "Re: no match for complain"
- Reply: Jerry Coffin: "Re: no match for complain"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]