コード例 #1
0
        private static void boi()
        {
            Belarus belarus1 = new Belarus();

            belarus1.stu();
            belarus1.stu("Belarus");
        }
コード例 #2
0
ファイル: Belarus.cs プロジェクト: NguyenMinh222/Hello-world
        public Belarus()
        {
            Console.WriteLine("Write your Name: ");
            Name = Student.Imya();
            Console.WriteLine("Write your Surname: ");
            Surname = Student.Imya();
            Console.WriteLine("Write your Nationality: ");
            Nationality = Student.nation();
            Console.WriteLine("Write your Age: ");
            Age = Student.age();
            Console.WriteLine("Write your Weight: ");
            Weight = (int)Student.weight();
            Console.WriteLine("Write your Height in m(for example 1,89): ");
            Height = (int)Student.height();
            Console.WriteLine("Write your university: ");
            University = Belarus.university();
            Console.WriteLine("Write your course: ");
            Course = Belarus.course();
            Console.WriteLine("Write your speciality: ");
            Speciality = Belarus.university();

            Console.WriteLine("How much money do you have?");
            A = Console.ReadLine();
            Console.WriteLine("How much money do you need for your study?");
            B = Console.ReadLine();
            int.TryParse(A, out a);
            int.TryParse(B, out b);
        }
コード例 #3
0
ファイル: Belarus.cs プロジェクト: NguyenMinh222/Hello-world
 public Belarus()
 {
     Console.WriteLine("Write your university: ");
     University = Belarus.university();
     Console.WriteLine("Write your course: ");
     Course = Belarus.course();
     Console.WriteLine("Write your speciality: ");
     Speciality = Belarus.university();
 }
コード例 #4
0
 public Belarus()
 {
     Console.WriteLine("Write your Name: ");
     Name = Student.Imya();
     Console.WriteLine("Write your Surname: ");
     Surname = Student.Imya();
     Console.WriteLine("Write your Nationality: ");
     Nationality = Student.nation();
     Console.WriteLine("Write your Age: ");
     Age = Student.age();
     Console.WriteLine("Write your Weight: ");
     Weight = (int)Student.weight();
     Console.WriteLine("Write your Height in m(for example 1,89): ");
     Height = (int)Student.height();
     Console.WriteLine("Write your university: ");
     University = Belarus.university();
     Console.WriteLine("Write your course: ");
     Course = Belarus.course();
     Console.WriteLine("Write your speciality: ");
     Speciality = Belarus.university();
 }