beautypg.com

HP Integrity NonStop H-Series User Manual

Page 187

background image

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

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

This manual is related to the following products: