I tried what you suggested me but actually doesn’t work. I have now another error: request for member ‘begin’ in ‘car_D’, which is of non-class type ‘car_data [n]’
However thank you for have tried to answer my question
Firstly, use std::array<car_data, n> car_D.
Secondly, you are attempting to assign the array element obtained from the dereferenced iterator to a double, when it is actually of type car_data.
No problem. Oh, please - in future, please post your question in one place and wait for a response, it’s a bit impolite to post the same question in the forum, chat and discord at the same time!