1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
#include "externVarDeclaration.h"
void stat_compare(double* results, double* info, double* stat) {
int size;
int i;
size = 33;
double *res_x_1jy_V_data = get_1jy_V();
cout << " here 1 " << size << endl;
std::vector< double> x_1jy_V_data(size);
//x_1jy_V_data = get_1jy_V();
for (i=0;i<=size;i++) {
x_1jy_V_data[i] = res_x_1jy_V_data[i];
}
cout << " here 2 " << size << endl;
delete res_x_1jy_V_data;
//delete [] res_x_1jy_V_data;
cout << " here we are at the end" << size << endl;
}
static double *get_1jy_V() {
static double array[] = {1.98,1.14,1.22,2.85,1.17,1.39,4,1.12,1.99,1.69,1.6,1.32,1.03,2.62,1.46,1.61,1.01,1.53,1.09,2,2.35,1.96,1.42,1.87,1.08,2.62,2.26,1.66,1.23,1.26,2.12,4.77,1.03,1.19};
return array;
}
|