예제 #1
0
        public static void Main(string[] args)
        {
            allTime allTime1 = new allTime();
            allTime allTime2 = new allTime();
            allTime allTime3 = new allTime();

            allTime1.data = new Data(13, 1, 1999);
            allTime1.time = new Time(15, 10, 40);
            allTime2.data = new Data(16, 4, 1999);
            allTime2.time = new Time(20, 0, 4);
            allTime3.data = new Data(7, 5, 1976);
            allTime3.time = new Time(1, 45, 30);
            Memories memories = new Memories();

            memories.AddTriad(allTime1);
            memories.AddTriad(allTime2);
            memories.AddTriad(allTime3);
            memories.early();
            memories.late();
            Tests(memories);
            Console.Read();
        }
예제 #2
0
 public void AddTriad(allTime triad)
 {
     memorie.Add(triad);
 }
예제 #3
0
 public Memories(allTime triad)
 {
     memorie.Add(triad);
 }