Exemple #1
0
        static void Main(string[] args)
        {
            Student st = new Student();
            bool    N  = false;
            char    digit;

            Console.Clear();
            while (N == false)
            {
                Console.WriteLine("\nChoose the number\n1.Show Infomation abot student.\n2.Chage name.\n3.Change Surname.\n" +
                                  "4.Change age.\n5.Change weight.\n6.Change university.\n7.Chnge speciality.\n8.Change the course.\na.Change height.\n0. Exist\n");
                digit = Console.ReadKey().KeyChar;
                Console.Clear();
                switch (digit)
                {
                case '1': st.show(); break;

                case '2': st.rename(ref name1); break;

                case '3': st.resurname(); break;

                case '4': st.Reage(); break;

                case '5': st.Reweight(); break;

                case '6': st.Reuniversity(); break;

                case '7': st.Respeciality(); break;

                case '8': st.Recourse(); break;

                case 'a': st.Reheight(); break;

                case '0': N = true; break;

                default: break;
                }
            }
        }