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

            s.PrintInfo();                           // вывожу начальные данные
            s.Incr();                                // увеличиваю год обучения
            s.PrintInfo();                           // вывожу конечные данные
        }
예제 #2
0
파일: Program.cs 프로젝트: nnbzh/PP2
        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
파일: Program.cs 프로젝트: Muragul/PP2
        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
파일: Program.cs 프로젝트: Oyanna/pp2
        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
파일: Program.cs 프로젝트: iliashadman/pp2
        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
파일: Program.cs 프로젝트: Adlet777/PP2Labs
        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
파일: Program.cs 프로젝트: agarysova/PP2
        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
파일: Program.cs 프로젝트: Malikovak24/PP2
        static void Main(string[] args)
        {
            Student s = new Student();

            s.PrintInfo();
        }