exam9-1.cpp

来自「里面包含各种数据结构方面的知识,如链表,树,图等 含有vc代码」· 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 + -
显示快捷键?