How to create an array with custom length?

Quantium qchessv2 at gmail.com
Fri Mar 27 19:30:39 UTC 2020


Code
     int n=0;
     readf(" %d", &n);
     int[n] m;
generated an error (DMD compiler):
Cannot read n at compile time.
How to create an array with custom length?


More information about the Digitalmars-d-learn mailing list