getting an invalid array type in the for loop not allowing me to fill the array sivalues. it wont poulate the array with x
int main () {
double a,b,increment,para;
int N;
cout<< "enter values for (a,b,N)";
cin>>a;
cin>>b;
cin>>N;
increment= (b-a)/(N-1);
double sivalues[N];
for (double x=a;x<=b;x+=increment){
sivalues[x]=si(x);
cout<<"si("<<x<<") = "<< sivalues[x];
}
system("PAUSE"); return 0;
}
incrementis never initialized, which might be a problem.