Hello,
So i'm new to C#, but I know c++ well.
I'm having problems inputting data into a two dimensional array
Here is how I initialized the array
int[,] temps = new int [12, 2];
And I attempted to write the input function and i have this so far.... any sugggestions?
public static void getTemps(int temps)
{
for (int i = 0; i <= 11; i++)
{
for(int e = 0; e <2; e++)
{
temps[i][0] = int.Parse(System.Console.ReadLine());
temps[i][1] = int.Parse(System.Console.ReadLine());
//constArray[e][] = inputfunctions.getLow;
}
}
}
afcourse I get an error, i'm sure the syntax is off, but i can't find any references online on how to input into a 2 dimensional array