i have 2 for loop and a list
one is
for ( list<numbers>::const_iterator i= poly1.begin(); i != poly1.end(); i++){
other is
for ( list<numbers>::const_iterator j= poly1.begin(); j != poly1.end(); j++ )
my problem is want iterator j to start on the element after i eg
i am doing
for ( list<numbers>::const_iterator j= poly1.begin() +1 ; j != poly1.end(); j++ )
but it doesn't work!
anyideas????
THANKS
one is
for ( list<numbers>::const_iterator i= poly1.begin(); i != poly1.end(); i++){
other is
for ( list<numbers>::const_iterator j= poly1.begin(); j != poly1.end(); j++ )
my problem is want iterator j to start on the element after i eg
i am doing
for ( list<numbers>::const_iterator j= poly1.begin() +1 ; j != poly1.end(); j++ )
but it doesn't work!
anyideas????
THANKS