Originariamente inviato da Alex'87
Fare vedere come hai risolto è cosa brutta?
you're right, man
codice:
int main(int argc, char **argv)
{
//input file
char *i_file = INPUT;
//output file
char *o_file = OUTPUT;
//n=number of points to interpolate
int n=0;
//type of interpolation
int interpolation=QSPLINE;
//displacement between every x-points to plot interpolated function
double step=STEP;
//x,y=read by file
//plot_x, plot_y = function to plot
double x[MAX],y[MAX],*plot_x,*plot_y;
//reference to input file handler
FILE *input;
//generic intepolator (polynomial, qspline, ...)
void * interpolator = NULL;
//generic evaluation function (depends by the interpolator)
double (*eval)(void*,double) ;
srand(getpid());
....
}