Can anyone help me out.I can't understand why am i getting this kind of error
#include <iostream>
#include <string>
#include<sstream>
#include<iomanip>
using namespace std;
void getDerivative() (double [],int[]);
void print_d_Array (double[]);
void print_i_Array (int []);
int main ()
{ const int polynomsize=5;
string sub[polynomsize];
string coefficient[polynomsize];
string exponent[polynomsize];
double coefdouble[polynomsize];
int exponentint[polynomsize];
string str ="2.4x^4 - 1.2x^3 + 6x^2 + 4.1x^1 + 9.2x^0";
size_t found;
found=str.find_first_of("+-");
sub[0]=str.substr(0,found);
cout<<"sub1"<<" "<<sub[0]<<endl;
while (found!=string::npos)
{ for (int i=1;i<polynomsize;i++)
{ int a=found;
found=str.find_first_of("+-",found+1);
sub[i]=str.substr(a,found-a);
cout<<"sub"<<i+1<<" "<<sub[i]<<endl;
}
}
for (int j=0;j<polynomsize;j++)
{ size_t foundx;
foundx=sub[j].find_first_of("x");
coefficient[j]=sub[j].substr(0,foundx);
cout<<" "<<coefficient[j]<<endl;
if((coefficient[j].at(0)=='+')||(coefficient[j].at(0)=='-'))
coefficient[j]=coefficient[j].substr(1,foundx);
istringstream iss(coefficient[j]);
iss>>coefdouble[j];
cout<<" "<<coefdouble[j]*2<<endl;}
cout<<"\n\n";
for (int g=0;g<polynomsize;g++)
{ size_t founde;
founde=sub[g].find_first_of("^");
exponent[g]=sub[g].substr(founde+1,1);
cout<<" "<<exponent[g]<<endl;
istringstream iss(exponent[g]);
iss>>exponentint[g];
cout<<" "<<exponentint[g]+2<<endl;
}
getDerivative(coefdouble,exponentint);
return 0;
}
void getDerivative (double da[],int ia[])
{
for (int w=0;w<5;w++)
{ da[w]=da[w]*ia[w];
ia[w]=ia[w]-1;
}
print_d_Array(da);
print_i_Array(ia);
}
void print_d_Array (double printdar[] )
{ for(int l=0;l<5;l++)
{cout<<"Vlerat e reja jane:"<<setw(10)<<printdar[l]<<endl;}
}
void print_i_Array (int printiar[] )
{ for(int k=0;k<5;k++)
{cout<<"Vlerat e reja jane:"<<setw(10)<<printiar[k]<<endl;}
}
1>------ Build started: Project: uffa, Configuration: Debug Win32 ------
1>Compiling...
1>pff.cpp
1>c:\users\user\documents\visual studio 2008\projects\uffa\uffa\pff.cpp(7) : error C2091: function returns function
1>c:\users\user\documents\visual studio 2008\projects\uffa\uffa\pff.cpp(70) : error C2660: 'getDerivative' : function does not take 2 arguments
1>Build log was saved at "file://c:\Users\User\Documents\Visual Studio 2008\Projects\uffa\uffa\Debug\BuildLog.htm"
1>uffa - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========