Пример #1
0
 static void PrintSequense(string seq)
 {
     foreach (char c in seq)
     {
         for (int i = 0; i < VeryHeavyObject.MAX_SIZE; i++)
         {
             Console.WriteLine(FlyWeightFactory.GetHeavyObjects(c)[i]);
         }
     }
 }
Пример #2
0
 static void PrintDigits(string number, string pow)
 {
     foreach (int c in number)
     {
         for (int i = 0; i < VeryHeavyObject.MAX_SIZE; i++)
         {
             Console.WriteLine(FlyWeightFactory.GetHeavyObjects(c)[i]);
         }
     }
 }