Beispiel #1
0
 public void LoTVFillStack(string Input)
 {
     int _temp = 0;
       LoTVStackNode NewNode;
       string[] Mass = Input.Split(' ');
       for (int i = Mass.Length - 1; i >= 0; i--)
       {
     if (int.TryParse(Mass[i], out _temp))
       NewNode = new LoTVStackNode(new LoTVData(_temp, false), stack_Head);
     else
       NewNode = new LoTVStackNode(new LoTVData(Mass[i][0], true), stack_Head);
     stack_Head = NewNode;
       }
 }
Beispiel #2
0
 public void LoTVPush(LoTVData Data)
 {
     LoTVStackNode NewNode = new LoTVStackNode(Data, stack_Head);
       stack_Head = NewNode;
 }
Beispiel #3
0
 public LoTVStackNode(LoTVData Data, LoTVStackNode NewNode)
 {
     node_Data = Data;
       node_Next = NewNode;
 }
Beispiel #4
0
 public LoTVStack()
 {
     stack_Head = null;
 }
Beispiel #5
0
 public LoTVData LoTVTake()
 {
     LoTVData Data = stack_Head.node_Data;
       stack_Head = stack_Head.node_Next;
       return Data;
 }