HP Integrity NonStop H-Series User Manual

Page 187

Advertising
background image

vector<int>::iterator nth = aVec.begin() + 4;
nth_element (aVec.begin(), nth, aVec.end());

cout << "fifth largest is " << *nth << endl;
}

Advertising
This manual is related to the following products: