public static MyQueue RandomQueue(MyQueue q) // задать рандомную очередь из 20 элементов { Random rnd = new Random(); for (int i = 0; i < 20; i++) { int a = rnd.Next(-40, 40); q.InQueue(a); } return(q); }
public void ClearQueue(MyQueue Q) { Q.Tail = null; Q.Head = null; }
public string[] GetstringQueue(MyQueue q) // возвращяет string[] со значениями очереди { List <string> Lines = new List <string>(); return(setlines(q.Head, Lines)); }