make it a cpp code

This commit is contained in:
Jidong Xiao
2023-11-20 16:59:43 -05:00
parent 6240353c8c
commit f6a4c2b769

View File

@@ -140,6 +140,7 @@ Lambda is new to the C++ language (part of C++11). But lambda is a core piece of
- The STL priority_queue is a max heap.
- You need to include <queue> in order to use the STL priority_queue. Below is a simple [example](max_heap.cpp):
```cpp
#include <iostream>
#include <queue>
@@ -160,6 +161,7 @@ int main() {
return 0;
}
```
- The above program will print: