Exemple #1
0
        public void Nacti()
        {
            int pocet = Cteni.NactiInt("Zadejte počet studentů");
            pole = new Student[pocet];
            for (int i = 0; i < pocet; i++)
            {
                pole[i] = new Student();
                pole[i].Nacti();

            }
        }
Exemple #2
0
 public static bool MensiJmeno(Student a, Student b)
 {
     return string.Compare(a.jmeno, b.jmeno)< 0;
 }
Exemple #3
0
 public static bool MensiFakulta(Student a, Student b)
 {
     return a.fakulta.ToString().CompareTo(b.fakulta.ToString()) < 0;
 }