Ejemplo n.º 1
0
 //---------------------------------------------------------------------
 static void Spausdinti(string fv, RaidziuDazniai eil)
 {
     using (var fr = File.CreateText(fv))
     {
         for (char sim = 'a'; sim <= 'z'; sim++)
         {
             fr.WriteLine("{0, 3:c} {1, 4:d} |{2, 3:c} {3, 4:d}",
                          sim, eil.Imti(sim),
                          Char.ToUpper(sim), eil.Imti(Char.ToUpper(sim)));
         }
     }
 }
Ejemplo n.º 2
0
 //-------------------------------------------------------------------
 static void Dazniai(string fv, RaidziuDazniai eil)
 {
     using (StreamReader reader = new StreamReader(fv, Encoding.GetEncoding(1257)))
     {
         string line;
         while ((line = reader.ReadLine()) != null)
         {
             eil.eil = line;
             eil.kiek();
         }
     }
 }
Ejemplo n.º 3
0
        //--------------------------------------------------------------------
        static void DazniausiaRaide(RaidziuDazniai eil)
        {
            int  max      = 0;
            char maxraide = 'a';

            for (char sim = 'a'; sim <= 'z'; sim++)
            {
                if (eil.Imti(sim) > max)
                {
                    max      = eil.Imti(sim);
                    maxraide = sim;
                }
            }
            Console.WriteLine("{0,3}  {1,4:c}", max, maxraide);
        }