Finding Nemo

vector::const_iterator findNemo(const vector& school)
{
   
    for(vector::const_iterator i=school.begin();i!=school.end();i++)
        if(i->name=="Nemo") return i;
    return school.end();
}
Vote up this code0