c++ array assignment of multiple values

so when you initialize an array, you can assign multiple values to it in one spot:

int array [] = {1,3,34,5,6}

but what if the array is already initialized and I want to completely replace the values of the elements in that array in one line

so

int array [] = {1,3,34,5,6}
array [] = {34,2,4,5,6}

doesn't seem to work...

is there a way to do so?

61
задан kamikaze_pilot 20 April 2011 в 15:25
поделиться