0

x[50][40] and y[50][40] are the 2d arrays. I am using array class. How to declare these in array class?

array <array<long double>> x(50,array<long double>(40)),y(50,array<long double>(40));

I have used the above code in my program like the way a vector is declared as in enter link description here But getting errors. Please help.

Community
  • 1
  • 1

1 Answers1

0
#include <array>
...
typedef ::std::array< ::std::array< double, 40 >, 50 > t_My2dArray_50_40;
trbvm
  • 141
  • 7