コード例 #1
0
ファイル: Studenti.cs プロジェクト: pepiczech/INPTP
        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();

            }
        }
コード例 #2
0
ファイル: Student.cs プロジェクト: pepiczech/INPTP
 public static bool MensiJmeno(Student a, Student b)
 {
     return string.Compare(a.jmeno, b.jmeno)< 0;
 }
コード例 #3
0
ファイル: Student.cs プロジェクト: pepiczech/INPTP
 public static bool MensiFakulta(Student a, Student b)
 {
     return a.fakulta.ToString().CompareTo(b.fakulta.ToString()) < 0;
 }