有谁能告诉我这个程序错在哪里吗?
希望有人可以指教,谢谢!
#include "iostream.h"
#include "iomanip.h"
#include "math.h"
void main( )
{
double a[20];
double b[20];
double c[20];
a[0]=0; b[0]=0; c[0]=0;
for (i=0;i<=20;i++)
{
a[i+1]=0.4*b[i]+0.2*c[i]-2.4;
b[i+1]=0.25*a[i]+0.5*c[i]+2.5;
c[i+1]=0.2*a[i]-0.5b[i]+0.1;
cout<<a[i]<<b[i]<<c[i]<<endl;
}
}