Help with the following C ++ tasks:
- Apply built-in language tools to rebuild an array into a binary heap, add an arbitrary element, and extract the maximum element from the binary heap.
- Apply built-in language tools to sort the pyramid.
I already have these algorithms implemented on bare C ++, but I don’t know what standard means the language has for these tasks, and Google doesn’t find anything.