H
Hicham Mouline
hi,
Is there a way to allocate an array and initialize in the same statement?
double* d = new double[n];
and assign immediately a value, say NaN
what i'm doing now is just:
for (size_t i=0; i<n; ++i)
d = NaN;
regards,
Is there a way to allocate an array and initialize in the same statement?
double* d = new double[n];
and assign immediately a value, say NaN
what i'm doing now is just:
for (size_t i=0; i<n; ++i)
d = NaN;
regards,