How to rewrite a vector into a regular array?? C++ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to rewrite a vector into a regular array?? C++

Can anyone help me? Link to code: https://code.sololearn.com/cUNYhIFkBKWB

11th Dec 2020, 1:45 PM
DGS
DGS - avatar
1 Answer
+ 2
Considering your code extracts unspecified amount floating point values, I think it will be rather difficult as regular array is not resizable like vector. It is doable if we know how many values are there to be extracted, thus we can prepare a number of elements for the regular array for storing the floating point values.
13th Dec 2020, 4:31 AM
Ipang