Exemple #1
0
        static void Main(string[] args)
        {
            //eff mijn hersenen en mijn faalangst. oke// let's REDO this.

            //event 1:
            SportEvent event1 = new SportEvent("idk");

            event1.AddStudents(new Student("Raiden")); //en we hebben opeens een metal gear thema
            event1.AddStudents(new Student("Kazuhira"));
            event1.AddStudents(new Student("Adamska"));
            event1.AddStudents(new Student("Venom"));
            event1.AddStudents(new Student("DD")); //best boi

            event1.AddSRecord("Raiden", 32.1);
            event1.AddSRecord("Kazuhira", 20.2);
            event1.AddSRecord("Adamska", 15.3);
            event1.AddSRecord("Venom", 29.4);
            event1.AddSRecord("DD", 11.5);

            Console.WriteLine("Records for: " + event1.EventName);
            Console.WriteLine(event1.toString());

            //event 2:

            SportEvent event2 = new SportEvent("idk");

            event2.AddStudents(new Student("Raiden"));
            event2.AddStudents(new Student("Kazuhira"));
            event2.AddStudents(new Student("Adamska"));
            event2.AddStudents(new Student("Venom"));
            event2.AddStudents(new Student("DD")); //still best boi

            event2.AddSRecord("Raiden", 16.1);
            event2.AddSRecord("Kazuhira", 32.2);
            event2.AddSRecord("Adamska", 64.3);
            event2.AddSRecord("Venom", 128.4);
            event2.AddSRecord("DD", 256.5);

            Console.WriteLine("Records for: " + event2.EventName);
            Console.WriteLine(event2.toString());

            BestScore a = new BestScore();

            a.Compare(event1);
            a.Compare(event2);

            Console.WriteLine(a.toString());

            Console.ReadKey();

            /*Student s1 = new Student("Raiden"); //test
             * //Student s2 = new Student("Hal"); //test
             *
             * Console.WriteLine(s1.toString()); //test
             * Console.WriteLine(s2.toString()); //test
             *
             * //SportEvent event1 = new SportEvent("reee");
             * //Console.WriteLine(event1);*/
        }
Exemple #2
0
        static void Main(string[] args)
        {
            //aaaaaaah

            //event 1:
            SportEvent event1 = new SportEvent("idk");

            event1.AddStudents(new Student("Raiden")); //en we hebben opeens een metal gear thema
            event1.AddStudents(new Student("Kazuhira"));
            event1.AddStudents(new Student("Adamska"));
            event1.AddStudents(new Student("Venom"));
            event1.AddStudents(new Student("DD")); //best boi

            event1.AddSRecord("Raiden", 32.1);
            event1.AddSRecord("Kazuhira", 20.2);
            event1.AddSRecord("Adamska", 15.3);
            event1.AddSRecord("Venom", 29.4);
            event1.AddSRecord("DD", 11.5);

            //Console.WriteLine(event1.info()); //uhh dis is kinda broken atm ahahajkhdfsd

            //event 2:

            SportEvent event2 = new SportEvent("idk");

            event2.AddStudents(new Student("Raiden", 16.1));
            event2.AddStudents(new Student("Kazuhira", 32.2));
            event2.AddStudents(new Student("Adamska", 64.3));
            event2.AddStudents(new Student("Venom", 128.4));
            event2.AddStudents(new Student("DD", 256.5)); //still best boi

            //Console.WriteLine(event2.info());

            /*Student s1 = new Student("Raiden"); //test
             * Student s2 = new Student("Hal"); //test
             *
             * Console.WriteLine(s1.info()); dit werkt wel eeehhhh
             * Console.WriteLine(s2);
             *
             * //SportEvent event1 = new SportEvent("reee");
             * //Console.WriteLine(event1);*/

            Console.ReadKey();
        }