So I am playing around with some arrays, and I cannot figure out why this won\'t work.
int numbers[5] = {1, 2, 3}; int values[5] = {0, 0, 0, 0, 0}; values =
std::array is a good idea, but this is also possible:
std::array
struct arr { int values[5]; }; struct arr a{{1, 2, 3}}; struct arr b{{}}; a = b;
Otherwise, use std::memcpy or std::copy.
std::memcpy
std::copy