求a0+a1x+a2x^ 2+…anx^ n 数组a存系数
int QinJiuShao(int n,double a[], int x) { int i; double p = a[n]; for (i = n; i > 0; i--) { p = a[i-1] + x * p; } return p; }