It's possible that since you didn't initilalise your arrays they're filled with garbage. Therefore your "== 0" tests fail and the garbage remains. Try initialising them all to 0 and see if this helps.
1 2 3
int xord[5] = {0};
int yord[5] = {0};
float civ[5] = {0.0};
In this function, you create 3 arrays: xord, yord, and civ.
You do not initialize ANY of them. Therefore they contain random garbage. (Remember, you are declaring them inside the function, which means they are recreated and destroyed every time the function is called -- they are not part of the class).
On lines 12, 16, 20, you proceed to check to see if the elements in your array are 0... but since you never set any elements in the array... these comparisons are meaningless.
it's to check if the location of the memory is empty, if it's empty than the value will be stored in the location
so in order to initialize the array is this what i got to do? void PointTwoD::storedata(int xord, int yord, int xcord, int ycord, floatciv, float civIndex)