The basis behind it is very simple, we want the program to output 25 decimal numbers between 0 and 1 that are evenly spaced. I have written the code below, but when I run it, it crashes. Can anyone tell me what is wrong? I do not understand arrays in c++ at all.
Please edit your post and make sure your code is [code]between code tags[/code] so that it has syntax highlighting and line numbers, as well as proper indentation.
If you are only concerned with output, why do you even need an array at all? Just output the numbers directly.