From f6a4c2b769291442a2759634f9454920feab97f2 Mon Sep 17 00:00:00 2001 From: Jidong Xiao Date: Mon, 20 Nov 2023 16:59:43 -0500 Subject: [PATCH] make it a cpp code --- lectures/22_priority_queues/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lectures/22_priority_queues/README.md b/lectures/22_priority_queues/README.md index 5e6d1c7..1b75c7d 100644 --- a/lectures/22_priority_queues/README.md +++ b/lectures/22_priority_queues/README.md @@ -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 #include @@ -160,6 +161,7 @@ int main() { return 0; } +``` - The above program will print: