is there any reason why this works well
vector<CalcToken*>* myVec; //assume this contains CalcToken
for(vector<CalcToken *>::iterator it = myVec->begin() ; it != myVec->end() ; advance(it,1)) {
cout<< (*it)->toString()<< " ";
}
and this isnt getting me anything back?(advance(it,2))
for(vector<CalcToken *>::iterator it = myVec->begin() ; it != myVec->end() ; advance(it,2)) {
cout<< (*it)->toString()<< " ";
}
i want to make a loop that should jump over some elements..., the following isnt working for me either it++,it++ and it+=2.