exam9-1.cpp
来自「数据结构c++-书的一些源代码」· C++ 代码 · 共 22 行
CPP
22 行
#include <iostream.h>
#include <stdlib.h>
typedef int KeyType;
struct DataType
{
KeyType key;
};
#include "HeapSort.h"
void main(void)
{
DataType test[8]={60,55,48,37,10,90,84,36};
int n = 8;
HeapSort(test,n);
for(int i=0; i<n; i++)
cout << test[i].key << " ";
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?