Is there a way in C ++ to build a float array initializing its values?
For example, I do:
float* new_arr = new float[dimension]; for(unsigned int i = 0; i < dimension; ++i) new_arr[i] = 0;
Is it possible to complete the task during creation?
c ++
Aslan986
source share