Пример #1
0
        static void Main(string[] args)
        {
            statya p1 = new statya("n1.txt");
            statya p2 = new statya("n2.txt");
            statya p3 = new statya("n3.txt");
            statya p21 = new statya("s1.txt");
            statya p22 = new statya("s2.txt");
            statya p23 = new statya("s3.txt");
            vector v1 = new vector("наука");
            v1.add(p1);
            v1.add(p2);
            v1.add(p3);
            vector v2 = new vector("sport");
            v2.add(p21);
            v2.add(p22);
            v2.add(p23);

            perevirka a = new perevirka(new vector[] { v1, v2 });
            statya t1 = new statya("t1.txt");
            statya t2 = new statya("t2.txt");

            Console.WriteLine(a.B(t1));
            Console.WriteLine(a.B(t2));
        }
Пример #2
0
 public perevirka(vector[] vectors_)
 {
     vectors = vectors_;
 }