Beispiel #1
0
        static void Main(string[] args)
        {
            string name   = Reading.ReadString("Your name");
            int    age    = Reading.ReadInt("Your age");
            double points = Reading.ReadDouble("Points");
            char   grade  = Reading.ReadChar("Grade");

            Console.WriteLine('\n' + name + '\n' + age + '\n' + points + '\n' + grade);
        }
Beispiel #2
0
        /// <summary>
        /// Přidá studenta do pole
        /// </summary>
        public void AddStudents()
        {
            string  name;
            int     number;
            Faculty faculty;
            char    choise;

            do
            {
                students[studentCount++] = createStudent();
                choise = Reading.ReadChar("Chcete přidat dalšího studenta a/n");
                Console.WriteLine();
            } while (choise != 'n');
        }