C
C#2y ago
Str1ke

❔ (Very beginner ) - For some reasons I get CS0019 error

5 Replies
Str1ke
Str1ke2y ago
( I want to know, how many Actors got filmed in a number of films greater then num )
Anton
Anton2y ago
call the method GetFilm() the parens $code for future reference
MODiX
MODiX2y ago
To post C# code type the following: ```cs // code here ``` Get an example by typing $codegif in chat If your code is too long, post it to: https://paste.mod.gg/
Str1ke
Str1ke2y ago
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;
}
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;
}
oh, thanks Thank you very much!
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server
More Posts