Three Stack Array, c++

this is my implementation of 3 stacks using a single array, in c++