syntax error : '<<'
#include<iostream>using namespace std;
class Duoxiangshi{
public:
int n,i;
double *a;
double jg;
void xg();
void kb();
//void shuchu();
//void jisuan();
void Duoxiangshi::gz(){
int m;
int *a = new int[n];
cout<<"请输入n";
cout<<"请依次输入系数m";
for (i=0;i<=n;i++){
cin>>m;
a[i] = m;
}}
void Duoxiangshi::shuchu(){
for(i = 0;i<=n;i++){
cout<<a[i]<<*<<x<<^<<i<<+;}} 想知道这里为什么会出现syntax error : '<<'这个问题
void Duoxiangshi::jisuan()
double result;
double x;
double s = 0;
cout<<"请输入x的值";
cin<<x;
for(i=0;i<=0;i++)
s=s+a[i]*x^i;
cout<<s;}
};
double main(){
Duoxiangshi.gz();
Duoxiangshi.shuchu();
Duoxiangshi.jisuan();}
求解决!!!!!!!