Matrix

  • Thread starter Thread starter piotrek
  • Start date Start date
P

piotrek

Hi
How to declare a matrix in C#.
Iam after C++ course and there it was sth like: float a[n][n];
PK
 
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;
 
Back
Top