13-03-05.cpp
来自「more efftive 代码」· C++ 代码 · 共 15 行
CPP
15 行
#include <iostream>#include <algorithm>#include <cassert>using namespace std;int main(){ int A[] = {1, 2, 3, 4, 5, 6, 7}; const int N = sizeof(A) / sizeof(int); assert(!is_heap(A, A+N)); make_heap(A, A+N); assert(is_heap(A, A+N));}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?