1 is an integer. 4 is an integer. 1/4 is calculated using integer division, the result is zero (with a remainder which is ignored).
You could use 1.0/4.0 to ensure floating-point division is done, or use 0.25 directly instead. In order to achieve the required sequence, the first value should be zero, each following value is found by adding 0.25.
By the way, void main() is not standard C++, many compilers will reject it. It should be int main().