I\'m trying to initialize an int array with everything set at -1.
I tried the following, but it doesn\'t work. It only sets the first value at -1.
in
If you really need arrays, you can use boosts array class. It's assign member does the job:
boost::array array; // boost arrays are of fixed size! array.assign(-1);