2013-04-02, 08:22 PM
data[abs(i)][0] causes it to crash because it returns a double, while array indices expect a size_t, consider casting it to an int.
data[(int)abs(i)][0]
Disregarding the fact why the indices are negative to begin with.
data[(int)abs(i)][0]
Disregarding the fact why the indices are negative to begin with.

