Пример #1
0
        static void Main(string[] args)
        {
            Student s = new Student("Dias", "18BD"); // создаю нового студента

            s.PrintInfo();                           // вывожу начальные данные
            s.Incr();                                // увеличиваю год обучения
            s.PrintInfo();                           // вывожу конечные данные
        }
Пример #2
0
        static void Main(string[] args)
        {
            Student s1 = new Student("Berik", 1, 1);
            Student s2 = new Student("Nurik", 2, 1);

            s1.PrintInfo();
            incYear(s1);
            s1.PrintInfo();
        }
Пример #3
0
        static void Main(string[] args)
        {
            Student s = new Student("S1", 101);


            s.PrintInfo();
            s.IncrementYearStudy();
            s.PrintInfo();
        }
Пример #4
0
        static void Main(string[] args)
        {
            Student s1 = new Student("Shyngys", "18BD110852"); // new student was created, and stored in object s1

            s1.incYear();                                      // increase an year of s1
            s1.PrintInfo();                                    // print information about him

            //repeat 2 previous steps
            s1.incYear();
            s1.PrintInfo();
        }
Пример #5
0
        static void Main(string[] args)
        {
            string  name = Console.ReadLine();    //считываем имя с консоли
            string  id   = Console.ReadLine();    //считываем ID
            Student s    = new Student(name, id); //создаем экземпляр нового типа

            s.PrintInfo();                        //выводим информацию за 1 год
            s.Increment();                        //увеличится год обучения
            s.PrintInfo();                        //выводим информацию за следующий год
            Console.ReadKey();                    //ждем нажатия клавиши пользователем
        }
Пример #6
0
        static void Main(string[] args)
        {
            string name = Console.ReadLine();  // reading name
            string id   = Console.ReadLine();  // reading id

            Student s = new Student(name, id); //creating an example pf the structure Student


            s.PrintInfo();     //calling the method of printing information

            s.Increment();
            s.PrintInfo();
            Console.ReadKey();
        }
Пример #7
0
        static void Main(string[] args)
        {
            Student student = new Student(); //create a new Student Object

            student.PrintInfo();             //Print out the information about the student
            student.year += 1;               //increment the year of study
        }
Пример #8
0
        public static void Main(string[] args)
        {
            Student a = new Student("Ali", 1);

            a.id = "12bd74638";
            a.Grow();
            a.PrintInfo();
        }
Пример #9
0
        static void Main(string[] args)
        {
            Student A = new Student();

            A.name          = Convert.ToString(Console.ReadLine());
            A.id            = Convert.ToString(Console.ReadLine());
            A.year_of_study = Convert.ToInt32(Console.ReadLine());
            A.PrintInfo();
        }
Пример #10
0
        static void Main(string[] args)
        {
            string[] s     = Console.ReadLine().Split();               //inputting information about a student and split it into 3 strings
            Student  newby = new Student(s[0], s[1], int.Parse(s[2])); //creating a new student and giving value for the variables(for 'year' via parse)

            newby.addyear();
            newby.PrintInfo();
            Console.ReadKey();
        }
Пример #11
0
        static void Main(string[] args)
        {
            Student stud = new Student();                                   //creating element of a class "Student"
            string  name = Console.ReadLine();                              //entering a string variable
            string  ID   = Console.ReadLine();                              //entering a string variable
            int     year = int.Parse(Console.ReadLine());                   // entering an integer variable

            stud.PrintInfo(name, ID, year);                                 //calling a function from a class "Student"
        }
Пример #12
0
        static void Main(string[] args)
        {
            Student s = new Student(); //обращаемся к классу Student

            s.name = "Togzhan";        //вводим нужные данные
            s.id   = "18BD110340";
            s.year = int.Parse("2019");
            s.PrintInfo();
            Console.ReadKey();
        }
Пример #13
0
        static void Main(string[] args)
        {
            Student s = new Student("Oralkhan", "18BD110937");

            s.PrintInfo();
        }
Пример #14
0
        static void Main(string[] args)
        {
            Student s = new Student("Marlen", "18BD11059", "2018-2022"); //обьявляем новую локальную переменную для класса Student

            s.PrintInfo();                                               //объявить метод PrintInfo
        }
Пример #15
0
        static void Main(string[] args)
        {
            Student s = new Student("Omarov", "4.0"); //create and give information about student

            s.PrintInfo();
        }
Пример #16
0
        static void Main(string[] args)
        {
            Student s = new Student("Madiyar", "18BD111169", "2018"); //creating new object

            s.PrintInfo();                                            //calling method
        }
Пример #17
0
        static void Main(string[] args)
        {
            Student s = new Student();

            s.PrintInfo();
        }