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; } }
public void LoTVPush(LoTVData Data) { LoTVStackNode NewNode = new LoTVStackNode(Data, stack_Head); stack_Head = NewNode; }
public LoTVStackNode(LoTVData Data, LoTVStackNode NewNode) { node_Data = Data; node_Next = NewNode; }
public LoTVStack() { stack_Head = null; }
public LoTVData LoTVTake() { LoTVData Data = stack_Head.node_Data; stack_Head = stack_Head.node_Next; return Data; }