This is my main class. I need to basically come up with a function that accepts my 2D array as an argument.
public static void Main (string[] args)
{
dailyMenu [,] daysOfMonth = new dailyMenu[4,5];
for (int column = 0; column < daysOfMonth.GetLength(0); column++)
{
for (int row = 0; row < daysOfMonth.GetLength(1); row++)
{
dailyMenu dm = new dailyMenu ();
daysOfMonth[column,row] = dm;
Console.WriteLine (dm.ToString ());
}
}
}
This is my attempt at creating a function that asks the user to enter an entree and then the function displays all days in which this entree is being served. I want to call the method above in my main method
static void entreeSearch(dailyMenu [,] entrees)
{
Console.WriteLine ("Please enter the entree you'd like to search for today :)");
string response = Console.ReadLine ();
response.ToUpper ();
if(response == entrees)
}