C#
C#

help

Root Question Message

Str1ke
Str1ke1/14/2023
(Very beginner ) - For some reasons I get CS0019 error

Str1ke
Str1ke1/14/2023
( I want to know, how many Actors got filmed in a number of films greater then num
Str1ke
Str1ke1/14/2023
)
AntonC
AntonC1/14/2023
call the method
AntonC
AntonC1/14/2023
GetFilm()
AntonC
AntonC1/14/2023
the parens
AntonC
AntonC1/14/2023
$code for future reference
Str1ke
Str1ke1/14/2023
  public int HowManyMoreThenNum(Actor[] arrActor, int num)
        {
            int counter = 0;
            for (int i = 0; i < arrActor.Length; i++)
            {
                if (arrActor[i].GetFilm > num)
                {
                    counter++;
                }
            }
            return counter;
        }
Str1ke
Str1ke1/14/2023
oh, thanks
Str1ke
Str1ke1/14/2023
Thank you very much!
ContactFrequently Asked QuestionsJoin The DiscordBugs & Feature RequestsTerms & Privacy