#include #include #include #include #include void get_data(int*, double*, double*, double*); const int MAX_BINS = 100; void main(){ int numBins; double n[MAX_BINS], nu_theory1[MAX_BINS], nu_theory2[MAX_BINS]; get_data(&numBins, n, nu_theory1, nu_theory2); for (int i=0; i> num; *numBins = num; for(int i=0; i> xmin[i] >> xmax[i] >> n[i]; } dataIn.close(); ifstream theory1In ("theory_1.dat"); theory1In >> num; *numBins = num; for(int i=0; i> xmin[i] >> xmax[i] >> nu_theory1[i]; } theory1In.close(); ifstream theory2In ("theory_2.dat"); theory2In >> num; *numBins = num; for(int i=0; i> xmin[i] >> xmax[i] >> nu_theory2[i]; } theory2In.close(); }