Hi How to declare a matrix in C#. Iam after C++ course and there it was sth like: float a[n][n]; PK
P piotrek Nov 7, 2005 #1 Hi How to declare a matrix in C#. Iam after C++ course and there it was sth like: float a[n][n]; PK
L Lebesgue Nov 7, 2005 #2 float[n][n] arr; which is jagged array or float[n, n] arr; which is multidimensional array. to access the elements float foo = arr[7][13] = 5f; OR float foo = arr[7, 13] = 5f;
float[n][n] arr; which is jagged array or float[n, n] arr; which is multidimensional array. to access the elements float foo = arr[7][13] = 5f; OR float foo = arr[7, 13] = 5f;