Question concerning creating args
I have a question, I am trying to create a new arg in a foreach statement. How can i do this. i also want to call the arg the var that comes from the foreach statement
9 Replies
i cant tell if im stupid and missing an obvious answer
arg = argument, argument = the values of params sent into a function
could you be a little more specific?
so
im creating a team arg
right
and so
im doing
foreach (int team in teams)
{
here i want to create a new arg
}
so it creates a new arg foreach number in teams
does that make sense?
sorry im bad at explaining'
i think arg is not the right word
i'm not sure what you want to create lol
ok lete me explain
so
im creating a arg which is has the different teams in it
the number of teams can change
i want to create a new arg for each of the teams that hold the players
or should i just use list
but still i dont get how to do either
does that make sense?
arg is not the right word
alr
thanks
this is what args are, for future reference: https://www.w3schools.com/cs/cs_method_parameters.php
alr thanks