示例#1
0
文件: Program.cs 项目: AvenNight/CVS
 public Clone(Clone clonedItem)
 {
     history = new ItemsStack <string>()
     {
         Head = clonedItem.history.Head, Tail = clonedItem.history.Tail
     };
     rollbacks = new ItemsStack <string>()
     {
         Head = clonedItem.rollbacks.Head, Tail = clonedItem.rollbacks.Tail
     };
 }
示例#2
0
文件: Program.cs 项目: AvenNight/CVS
 public void Learn(string programm)
 {
     history.Push(programm);
     rollbacks = new ItemsStack <string>();
 }
示例#3
0
文件: Program.cs 项目: AvenNight/CVS
 public Clone()
 {
     history   = new ItemsStack <string>();
     rollbacks = new ItemsStack <string>();
 }