摘要: 1 #include "stdafx.h" 2 #include 3 int h[101];//用来存放堆的数组 4 int n;//用来存储堆中元素的个数,也就是堆的大小 5 6 void swap(int x,int y){ 7 int temp = h[x]; 8 h[x] = h[y]; 9 h[y] = temp; 10 return... 阅读全文
posted @ 2018-08-05 13:25 薄荷味的笑 阅读(83) 评论(0) 推荐(0) 编辑