Quando cerco di impostare un array in questo modo
il compilatore mi segnala questo errore:codice:int num[4]; ... if (foobar == 1) num = { 0, 1, 2, 3 }; else num = { 4, 5, 6, 7 }; ...
error: assigning to an array from an initializer list
Come devo fare per impostare correttamente il mio array?
Grazie in anticipo