摘要:
public struct pqItem{public int priority;public string name;}public class PQueue : Queue{public PQueue(): base(){}public override object Dequeue(){object[] items;int min, minindex = 0;items = this.ToArray();min = ((pqItem)items[0]).priority;for (int x = 1; x <= items.GetUpperBound(0); x++)if (((p 阅读全文