public IBoat Dequeue() { IBoat _result = null; if (_head == null) { throw new Exception("Queue is Empty"); } _result = _head.Data; _head = _head.Next; return(_result); }
public void addToLast(IBoat data_param, Node_old nodeObj) { Node_old _newNode = new Node_old(data_param); if (_head == null) { _head = _newNode; _tail = _head; } else { while (_newNode.g) { } } }
public void Enqueue(IBoat data) { Node_old _newNode = new Node_old(data); if (_head == null) { _head = _newNode; _tail = _head; } else { _tail.Next = _newNode; _tail = _tail.Next; } _count++; }