Initialize a float array on construction

前端 未结 2 1083
悲&欢浪女
悲&欢浪女 2021-02-20 09:34

Is there a way in C++ to construct a float array initializing it\'s values?

For example, i do:

float* new_arr = new float[dimension];
for(unsigned int i          


        
2条回答
提交回复
热议问题