?? minheap.h
字號:
// MinHeap.h: interface for the MinHeap class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_MINHEAP_H__3743AE3C_F411_4C0F_8633_B77B2C6A91F0__INCLUDED_)
#define AFX_MINHEAP_H__3743AE3C_F411_4C0F_8633_B77B2C6A91F0__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <iostream>
using std::cout;
using std::cin;
using std::endl;
struct Element
{
int key;
};
class MinHeap
{
public:
MinHeap( int sz );
bool IsFull();
void Insert( const Element& );
bool isEmpty();
Element* Delete( Element& );
private:
Element *heap;
int n;
int MaxSize;
};
#endif // !defined(AFX_MINHEAP_H__3743AE3C_F411_4C0F_8633_B77B2C6A91F0__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -