public string Dequeue() { if (IsEmpty() == false) { string temp = Head.data; Head = Head.next; return(temp); } return(null); }
public void Enqueue(string value) { NodeQueue temp = new NodeQueue(value); if (IsEmpty()) { Head = temp; } else { Tail.next = temp; } Tail = temp; Tail.next = null; }
public NodeQueue(string value) { data = value; next = null; }
public Queue() { Head = null; Tail = null; }
public NodeQueue() { data = null; next = null; }