Are you sure if your code compiles, Its your 13th post and The Lack of Code Tags make this program a lot more messier.
for (i=0; i > 30;++)
{
array[i]=AccumalatedValue
cout<<array[i]<<endl;
{ //Shouldnt this be '}'
And where is the ending Brace for the function itself.
Apart from all that, I suggest that you get back to a Pen and Paper and precisely think of how you can work out your task. After which you could start out the code.
Sky Diploma
Practically a Posting Shark
865 posts since Mar 2008
Reputation Points: 673
Solved Threads: 131