×

Loading...

in my interview, a question is :what's wrong

for (aIterator = aVector.begin();aIterator != aVector.end())
{
if (aVector.get(aIterator )==0)
aIterator =aVector.erase(aIterator );
alterator++;

}

so, if the last element is 0,error ?I failed to answer this question
Report