I have declared and initialized an array as follows:
array<array<double, 2>, 2> myarray1
= { 0.7, 0.7, 0.7, 0.7 };
The compiler accepts this but is there a more modern, less clunky syntax I could be using?
I am trying to pass a 2D array to a function and my declaration seems to be a good start.
New contributor
KenS is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.