摘要: #include #include #include #include using namespace std;const int maxn=60000+10;int heap_size=0; //堆的元素个数struct Node{ char name[100]; int para,pri; int t; //用于存储信息加入的顺序,当优先级相同时,t小的先出队列}node[maxn];//交换node[a]和node[b]的值void exchange(int a,int b){ Node tmp; tmp=node[a]; node[a]=node... 阅读全文
posted @ 2013-10-05 10:42 辰曦~文若 阅读(247) 评论(0) 推荐(0)